Why do I get -1 when I print the following?
unsigned long long int largestIntegerInC = 18446744073709551615LL;
printf ("largestIntegerInC = %d\n", largestIntegerInC);
I know I should use llu
instead of d
, but why do I get -1 instead of 18446744073709551615LL?
Is it because of overflow?