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 prints 36 intead 33 because its total bytes is 33..
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 prints 36 intead 33 because its total bytes is 33..
Comment