How can an integer be converted into a string in C? Suppose we have an int array:
int a[4]={21,1212,53,4131};
and each int is to be converted in to strings: "21","1212","53","4131".
How can an integer be converted into a string in C? Suppose we have an int array:
int a[4]={21,1212,53,4131};
and each int is to be converted in to strings: "21","1212","53","4131".
Basically use itoa
or sprintf
and/or read the many great detailed answer that were already posted.