Does your favorite C++ compiler support 64-bit integer types?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top