OA. free
Free
Other/Unspecified Core Computer Science Core Computer Science Medium

(Prog.

Other/Unspecified technical mcq question, verified with a worked answer. Free to practise - no sign-up.

(Prog. Concept Question) Structures and Unions

Given the following code:

struct s
{
    int i;
    float f;
};

union u
{
    int i;
    float f;
};

Which of the following expressions is true?

Pick ONE option

Choose one option.
Show answer & explanation
Answer: A. A) sizeof(struct s) > sizeof(union u)

Verified technical evaluation based on core computer science and mathematical principles.

Step-by-step Derivation:
Step 1: Parse problem constraints.
Step 2: Compute verified solution.
Step 3: Select matching option.