[Solved] How To assign a number in a integer variable to a string


You can use sprintf or snprintf.

int c = 4;
char tin [Some_Length];
sprintf(tin , "%d", c);

Or

snprintf(tin , Some_Length, "%d", c);

Also, there is no string type in C.

1

solved How To assign a number in a integer variable to a string