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 C

    Explanation :

    This type of declaration is called as self-referential structure. Here *e is pointer to a struct emp.


Be The First To Comment