Convert long long to string in C?

I would like to convert a long long string to C.

long long x = 999; 

I would like to convert x to string. How could I do this?

Thanks.

+4
source share
1 answer
 long long x = 999; char str[256]; sprintf(str, "%lld", x); printf("%s\n", str); 
+10
source

All Articles