Convert long long to string in C?

long long x = 999;
char str[256];
sprintf(str, "%lld", x);
printf("%s\n", str);

Leave a Comment