Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Write a Program to Get Size of Data Types */
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- clrscr();
- printf("\n Size Of Integer = %d",sizeof(int)); //2
- printf("\n Size Of Float = %d",sizeof(float)); //4
- printf("\n Size Of Char = %d",sizeof(char)); //1
- printf("\n Size Of double = %d",sizeof(double));//8
- getch();
- }
Add Comment
Please, Sign In to add comment