Hello,
When i was playing with ULLONG_MAX, i wrote following code.
Since the sizeof produces 8, i think the 1st printf statement should produce 2^64-1 instead of 2^32-1(I'm using Dev-Cpp on win32). Could anyone hint on this?Code:#include <stdio.h> #include <limits.h> int main() { unsigned long long a = ULLONG_MAX; printf("%llu\n",a); //outputs 4294967295 printf("%d",sizeof(unsigned long long)); //outputs 8 return 0; }
Thanks in advance.