Detailed Explanation of C++ Integer Types
Basic Integer Types C++ provides various integer types, arranged in increasing order of width: Type Typical Size Value Range char 1 byte -128 to 127 or 0 to 255 short 2 bytes -32,768 to 32,767 int 4 bytes -2,147,483,648 to 2,147,483,647 long 4 or 8 bytes Depends on the system long long 8 bytes -9,223,372,036,854,775,808 … Read more