Home / C Programming / Declarations and Initializations :: Discussion

Discussion :: Declarations and Initializations

  1. Which of the structure is incorrcet?

    1 :
    struct aa
     {    
        int a;    
        float b; 
    }; 
    2 :
    struct aa
     {    
         int a;   
         float b;     
         struct aa var;
     };
    
    3 :
    struct aa 
    {     
        int a;    
        float b;     
        struct aa *var;
     };

  2. A.

    1

    B.

    2

    C.

    3

    D.

    1, 2, 3

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    Option B gives "Undefined structure in 'aa'" error.


Be The First To Comment