Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- //the size of a variable using the sizeof() operator.
- {
- int i ;
- char c;
- double d;
- float f;
- long l;
- printf("size of integer = %d bytes\n", sizeof(i));
- printf("size of character = %d bytes\n", sizeof(c));
- printf("size of double = %d bytes\n", sizeof(d));
- printf("size of float = %d bytes\n", sizeof(f));
- printf("size of long = %d bytes\n", sizeof(l));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement