when I declare
struct student{
int rollno; //it reserve 4 bytes
char name[25]; // it reserve 25 bytes
float marks; // it reserve 4 bytes
// total is 33byte
};
struct student s1; //it reserve 33 bytes
printf("%d",siz eof(s1));
// it prints 36.
// why...
User Profile
Collapse
Profile Sidebar
Collapse
my098
Last Activity: Feb 15 '17, 01:42 PM
Joined: Feb 15 '17
Location:
-
my098 started a topic when i prints struct type variable it prints more byte then it has data type bytes.in Cwhen i prints struct type variable it prints more byte then it has data type bytes.
No activity results to display
Show More