Advertisement
Nitin400

WAP to find size of int,char,float,double floating data type

Nov 2nd, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio.h>
  3. int main ()
  4. {
  5.     int a;
  6.     char b;
  7.     float c;
  8.     double d;
  9.     printf("size of integer data type = %d byte\n", sizeof(a));
  10.         printf("size of charactor data type = %d byte\n", sizeof(b));
  11.             printf("size of floating data type  = %d byte\n", sizeof(c));
  12.                 printf("size of double floating data type  = %d byte\n", sizeof(d));
  13.                 getch();
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement