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

Discussion :: Structures, Unions, Enums

  1. Point out the error in the program?

     struct emp
     {   
         int ecode;   
         struct emp e;
     }; 
    

  2. A.

    Error: in structure declaration

    B.

    Linker Error

    C.

    No Error

    D.

    None of above

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    The structure emp contains a member e of the same type.(i.e) struct emp. At this stage compiler does not know the size of sttructure.


Be The First To Comment