Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. Comment on the following union declaration?

    union temp
    {
    int a;
    float b;
    char c;
    };
     union temp s = {1,2.5,'A'}; //REF LINE
         Which member of the union will be active after REF LINE?
  2. A.
    a
    B.
    b
    C.
    c
    D.
    Such declaration are illegal

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    None.


Be The First To Comment