I'm trying to use the "long long int" type, but I seem to be having some trouble. I'm using g++ (version 3.4.5, 2006, as far as I can tell), in MinGW, programming in the NetBeans 6.1 IDE. The trouble is that the compiler recognizes "long long int" (and its variations), but doesn't seem to be able to actually deal with them - arithmetic and printing show obvious errors. For example:
My result is:
printf("sizeof(long long): %d, Min: %lld, Max: %lld\n",
sizeof(long long), LLONG_MIN, LLONG_MAX);
Anybody have any idea what might be causing this? I needses my 8-byte integers, yes I does...
sizeof(long long): 8, min: 0, max -2147483648
Thanks much in advance