Virajsinh

A_PRM_01

Oct 7th, 2017
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. /* Write a Program to Get Size of Data Types */
  2.  
  3. #include<stdio.h>
  4. #include<conio.h>
  5. void main()
  6. {
  7.     clrscr();
  8.     printf("\n Size Of Integer = %d",sizeof(int));  //2
  9.     printf("\n Size Of Float = %d",sizeof(float));  //4
  10.     printf("\n Size Of Char = %d",sizeof(char));    //1
  11.     printf("\n Size Of double = %d",sizeof(double));//8
  12.     getch();
  13. }
Add Comment
Please, Sign In to add comment