Home » C Programming » Unions » Question
  1. What type of data is holded by variable u int in the following C code?
    #include <stdio.h>
    union Example
    {
    int Nval;
    float Fval;
    char *Sval;
    } e;
    1. Will be large enough to hold the smallest of the three types;
    2. Will be large enough to hold the all of the three types;
    3. Will be large enough to hold the largest of the three types;
    4. All of above
    5. None of these
Correct Option: C

Will be large enough to hold the largest of the three types;



Your comments will be displayed only after manual approval.