C Program for demonstration of size of data types

 

Sample Output(64 bits system)
The size of character is 1 Byte.
The size of short integer is 2 Bytes.
The size of integer is 4 Bytes.
The size of unsigned integer is 4 Bytes.
The size of long integer is 8 Bytes.
The size of long long integer is 8 Bytes.
The size of float is 4 Bytes.
The size of double is 8 Bytes.
The size of long double is 16 Bytes.

You may also like...