What is short int in c programming?
A) It is a data type that can store only short integers.
B) It is equivalent to the int
data type and can store integers of any size.
C) It is a data type used for storing characters.
D) It is a data type used for storing floating-point numbers.
Answer:
A) It is a data type that can store only short integers.
Explanation:
In C programming, short int
is a data type used to declare variables that can store short integers, which typically have a smaller range of values compared to regular int
variables. It is used to optimize memory usage when you know that the variable will not require the full range of an int
.