Find size of integer, floating-point, double and character variables

Write a function that receives the integer, floating-point, double and character values and computes the size of the value in the memory.


Implementation:



Output:

Size of Integer =2 bytes
Size of Float =4 bytes
Size of Double=8 bytes
Size of Character=1 bytes