+ 2

What is different between

int & long int & short int

1st Sep 2018, 7:23 AM
Omar
Omar - avatar
2 Réponses
+ 1
All of them are whole numbers and it's been guaranteed that : sizeof(short int) <= sizeof(int) <= sizeof(long int). But the exact size of these depend on your system architecture and your compiler.
1st Sep 2018, 10:14 AM
shiva
shiva - avatar
0
int is a data type that used to store an integer numbers but when I use the modifiers (long -short) you just modify the size of int according to that action the data size will be change try it your self size of (short int ) , size of (int long)
2nd Sep 2018, 5:18 PM
Abdullah Saeed Moustafa
Abdullah Saeed Moustafa - avatar