Union Person char name 30 30 bytes int age float height How many-05353
Union Person<br> {<br> char name[30]; //30 bytes<br> int age;<br> float height;<br> };<br> How many bytes will skip after executing ptr = ptr +1.<br> Union Person abc, *ptr;<br> Ptr = abc;<br>ptr = ptr +1;
This multiple choice question (MCQ) is related to the book/course vu cs410 Visual Programming. It can also be found in vu cs410 Final Term - Quiz No.14.
Union Person
{
char name[30]; //30 bytes
int age;
float height;
};
How many bytes will skip after executing ptr = ptr +1.
Union Person abc, *ptr;
Ptr = abc;
ptr = ptr +1;
{
char name[30]; //30 bytes
int age;
float height;
};
How many bytes will skip after executing ptr = ptr +1.
Union Person abc, *ptr;
Ptr = abc;
ptr = ptr +1;
30 bytes will skip after executing ptr = ptr +1.
31 bytes will skip after executing ptr = ptr +1.
32 bytes will skip after executing ptr = ptr +1.
38 bytes will skip after executing ptr = ptr +1.