What will be the output of the following 'C' code on a 64-bit computer? #…

2025

What will be the output of the following 'C' code on a 64-bit computer?

# include <stdio.h>

union sti

{

int x;

char y;

};

int main ( )

{

union sti s;

printf ("%d", sizeof (s));

return 0;

}

Answer: C. 4

  1. A.

    9

  2. B.

    5

  3. C.

    4

  4. D.

    8

Attempted by 450 students.

Show answer & explanation

Correct answer: C

Explore the full course: Up Lt Grade Assistant Teacher 2025

Loading lesson…