Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    union test
    {
    char ch;
    char c;
    int n;
    }ts;
    int main()
    {
    printf("%d", sizeof(ts));
    return 0;
    }
    1. 6
    2. 4
    3. 2
    4. 1
    5. None of these
Correct Option: B

4



Your comments will be displayed only after manual approval.