How do you format a (Signed) long long int using printf?
#include <stdio.h>
int main() {
long long int num = 123456766666666890; //FYI: fits in 29 bits
int RegularInteger = 4;
printf("My number is %d bytes wide and its value is %d. A normal number is %d.\n", sizeof(num), num, RegularInteger);
return 0;
}
Output:
My number is 8 bytes wide and its value is 1917383562. A normal number is 4.
I am not getting desired output.