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

Discussion :: Structures, Unions, Enums

  1. Point out the error in the program?

     typedef struct data mystruct;
     struct data
     {  
          int x;  
          mystruct *b;
     }; 
    

  2. A.

    Error: in structure declaration

    B.

    Linker Error

    C.

    No Error

    D.

    None of above

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    Here the type name mystruct is known at the point of declaring the structure, as it is already defined.


Be The First To Comment