This is C program that asks user to find out the size of int. there are too many data types in programming languages. All are same in using like any content acquired the memory as well as data types also acquire the memory like char, integer, float or double etc. integer data type acquire the 2 bytes. This is the program that uses to define the data type memory acquiring status. Using some methods to find out the display as result.
This is C program that ask user to find out the memory or size of integer.
- Declare the variables.
- Using memory.
- Display result on the screen.
Here is C source code to find out the size of int. The output of this program shown below.
printf("%d \n", sizeof(int));