What are the ranges and sizes for int, long int , long long int, unsigned long int for the compiler @ spoj?
created
last reply
- 3
replies
- 176
views
- 3
users
- 1
link
What are the ranges and sizes for int, long int , long long int, unsigned long int for the compiler @ spoj?
Spoj uses g++ compiler .Range for data types in g++ is given here6.
'm looking for detailed informations regarding the size of basic C++ types.
I know that it depends on the architecture (16 bits, 32 bits, 64 bits) and the compiler.
But are there any standards ?
I'm using Visual Studio 2008 on a 32 bit achitecture. Here is what I get :
char : 1 byte
short : 2 bytes
int : 4 bytes
long : 4 bytes
float : 4 bytes
double : 8 bytes
I tried to find, without much success, reliable informations telling the sizes of char, short, int , long, double, float (and other types I don't think of) under different architecture and compiler.
Topic | Category | Replies | Views | Activity |
---|---|---|---|---|
SPTTRN1 - Straight Line Spiral Pattern (Act 1) | C and C++ | 0 | 13 | 6d |