C Structure and Union - C programming (MCQ) questions for Q. 27529

Q.  Which among the following is never possible in C when members in a structure are same as that in a union?

    //Let P be a structure
    //Let Q be a union

- Published on 26 Feb 17

a. sizeof(P) is greater than sizeof(Q)
b. sizeof(P) is equal to sizeof(Q)
c. sizeof(P) is less than to sizeof(Q)
d. None of the above

ANSWER: sizeof(P) is less than to sizeof(Q)

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)