This shows you the differences between two versions of the page.
— |
cpp:datatypes:int [2024/02/16 01:04] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{keywords>wiki library source code example reference}} | ||
+ | ===== int ===== | ||
+ | int Integer | ||
+ | 4byte* | ||
+ | signed: -2147483648 - 2147483647 | ||
+ | unsigned: 0 - 4294967295 | ||
+ | |||
+ | |||
+ | |||
+ | ===== Cpp Sourcecode Example ===== | ||
+ | <code cpp> | ||
+ | #include <iostream> | ||
+ | using namespace std; | ||
+ | |||
+ | int main() | ||
+ | { | ||
+ | |||
+ | cout << "Size of int: " << sizeof(int) << " bytes" << endl; | ||
+ | return 0; | ||
+ | } | ||
+ | </code> |