0
how to use the( itoa) function in string and what is the library for it? please.
4 Réponses
+ 5
it is not a standard function
Prototype
char * itao ( int value, char * str, int base );
+ 3
itoa converts integer to string and belongs to stdlib.h
#include <stdio.h>
#include <stdlib.h>
int main () {
int i;
char buffer [33];
printf ("Enter a number: ");
scanf ("%d",&i);
itoa (i,buffer,10);
printf ("decimal: %s\n",buffer);
}
+ 1
thank you...