il n’y a pas de commande spécifique pour avoir le dernier le caractère
de la chaîne s. Mais on convient que l’indice du dernier (resp
avant-dernier) caractère est aussi égal à -1 (resp -2).
On tape :
s:="bonjour";s[size(s)-1]
Ou on tape :
s:="bonjour";s[-1]
Ou on tape :
"bonjour"[-1]
On obtient :
"r"