I
Ioannis Vranos
Jack Walker said:Well .NET is a virtual processor system like the JVM so every type it
supports is emulated in software.
But .NET is not yet an 64-bit virtual machine.
DJGPP also provides 64 bit integer type, as also MINGW (both GCC ports).
#include <iostream>
#include <limits>
// Not ISO C++98 code
int main()
{
using namespace std;
cout<<numeric_limits<long long>::max()<<endl;
cout<<numeric_limits<long>::max()<<endl;
}
C:\c>gpp temp.cpp -o temp
C:\c>temp
9223372036854775807
2147483647
C:\c>\mingw\bin\g++ temp.cpp -o temp
C:\c>temp
9223372036854775807
2147483647
And of course GCC for 32-bit GNU/Linux does the same.
Ioannis Vranos