C program to convert integer to string using itoa() function.


int main()
 int n = 1254;
 char str[20];
 printf("Number is %d \n",n);
 printf("String value is %s \n",str);
 return 0;

Number is 1245
String value is 1245

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *

The reCAPTCHA verification period has expired. Please reload the page.