I\'m looking for detailed information regarding the size of basic C++ types. I know that it depends on the architecture (16 bits, 32 bits, 64 bits) and the compiler.
You can use:
cout << "size of datatype = " << sizeof(datatype) << endl;
datatype = int, long int etc. You will be able to see the size for whichever datatype you type.
datatype = int
long int