Caractères | Type d'argument | Format affiché |
%d, %i | entier | entier en notation décimale signée |
%o | entier | entier en notation octale non signée |
%u | entier | entier en notation décimale non signée |
%x | entier | hexadécimal non signé (caractères a,b,c,d,e et f) |
%X | entier | hexadécimal non signé (caractères A,B,C,D,E et F) |
%f | flottant | flottant signé au format [-]dddd.dd |
%e | flottant | flottant signé au format [-]d.ddd ou e[+/-]ddd |
%E | flottant | flottant signé au format [-]d.ddd ou E[+/-}ddd |
%g | flottant | flottant signé au format e ou f, selon la précision |
%G | flottant | flottant signé au format E ou f, selon la précision |
%s | caractere | caractère |
%s | pointeur sur chaine | chaine de caractères imprimée jusqu'au '\0' final |
%n | pointeur sur int | pointeur sur int |
%p | pointeur | valeur d'un pointeur |