Actual size of the above structure is 3 bytes(lets say int is 2 bytes).Code:struct student { int a; char c; }s1;
Is the declaration of above structure is correct or not as I didn't add any padding bytes?
Is the structure padding the compiler dependent?