Home / C Programming / Structures, Unions, Enums :: Discussion

Discussion :: Structures, Unions, Enums

  1. What will be the output of the program given below in 16-bit platform ?

    #include 
     int main()
     {   
         enum value{VAL1=0, VAL2, VAL3, VAL4, VAL5} var;  
         printf("%d\n", sizeof(var));       
         return 0;
     }
    

  2. A.

    1

    B.

    2

    C.

    4

    D.

    10

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    No answer description available for this question.


Be The First To Comment