Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Integer Types/src/Integer Types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ int main() {
int value = -54656;
cout << value << endl;

cout << "Max int value: "<< INT_MAX << endl;
cout << "Min int value: "<< INT_MIN << endl;
cout << "Max int value: "<< INT_MAX << endl; // upper limit of int
cout << "Min int value: "<< INT_MIN << endl; // lower limit of int

long int lValue = 2345325345345;
cout << lValue << endl;
cout << lValue << endl;

short int sValue = 23434;
cout << sValue << endl;

cout << "Size of int: " << sizeof(int) << endl;
cout << "Size of short int: " << sizeof(short int) << endl;

unsigned int uValue = 2342343;
unsigned int uValue = 2342343; // unsigned int only takes positive values, it has same size as int
cout << uValue << endl;

return 0;
Expand Down