inttypes
#include <inttypes.h>
#include <stdio.h>
int main() {
int64_t num = -123456789;
char buffer[32];
sprintf(buffer, "%" PRIi64, num);
printf("Signed integer as a string: %s\n", buffer);
return 0;
}#include <inttypes.h>
#include <stdio.h>
int main() {
uint64_t num = 123456789;
char buffer[32];
sprintf(buffer, "%" PRIu64, num);
printf("Unsigned integer as a string: %s\n", buffer);
return 0;
}