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

[ad_1]

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

[ad_2]

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