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
- A.
9
- B.
5
- C.
4
- D.
8
Attempted by 450 students.
Show answer & explanation
Correct answer: C
Loading lesson…