How is short int (or short) and int different in C? They have the same size and range. If they are essentially the same, what is the use of having two data types?
They may have the same size, but it is guaranteed that int is equal to or bigger than short int.
int
short int