C Program To Find the Size of Data Types using sizeof operator

Program can also be written using sizeof operator with variables as given below.

 

Output: ( using GNU GCC Compiler with Code Blocks IDE )
Note: In borland C or Turbo C compilers size of int is 2.