convert int to char
int a = 125;
int b[50];
sprintf (b‚ "%d"‚ a);
/* b contient la chaine "125"‚ et on concactene "oui". */
strcat (b‚ "oui");
printf ("%s\n"‚ b);
ATTENTION : the first parameter of the fonction sprintf should be char[]
Publicité
Partager cet article
Pour être informé des derniers articles, inscrivez vous :
Commenter cet article