Live quiz

C Programming - Part 63

Question 1 of 25 Hints left: 3
Q1

What will be the output of the following C code? (Assuming size of char = 1, int = 4, double = 8) #include <stdio.h> union utemp { int a; double b; char c; }u; int main() { u.c = 'A'; u.a = 1; printf("%d", sizeof(u)); }

  • A
  • B
  • C
  • D