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

Discussion :: Structures, Unions, Enums

  1. Point out the error in the program in 16-bit platform?

      #include
    
       int main() 
       {   
           struct bits    
           {         
             int i:40;    
          }bit;  
         printf("%d\n", sizeof(bit));     
         return 0;
      }
    

  2. A.

    4

    B.

    2

    C.

    Error: Bit field too large

    D.

    Error: Invalid member access in structure

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment