Wednesday, 26 August 2015

Write a C Program To Find Size of Int , Float And Double Variable

Write a C Program To Find Size of Int , Float And Double Variable
1:  #include<stdio.h>  
2:  #include<conio.h>  
3:  int main()  
4:  {  
5:        clrscr();  
6:        printf("Size of int is -> %d\n",sizeof(int));  
7:        printf("Size of long is -> %d\n",sizeof(float));  
8:        printf("Size of double is -> %d\n",sizeof(double));  
9:        getch();  
10:        return 0;  
11:  }  

No comments:

Post a Comment