Top

Discussion

The size of the following union, where an int occupies 4 bytes of memory is

union demo
{
  float x;
  int y;
  char z[10];
};

 

  • A.8 byte
  • B.4 byte
  • C.10 byte
  • D.18 byte

Answer: C

Largest size among the three structure variable is selected that is char z[10].

No comment is present. Be the first to comment.
Loading…

Post your comment