Home / C Programming / Typedef :: Discussion

Discussion :: Typedef

  1. In the following code snippet can we declare a new typedef named ptr even though struct employee has not been completely declared while using typedef?

     typedef struct employee *ptr;
     struct employee
     {    
        char name[20];   
        int age;    
        ptr next; 
    } 
    

  2. A.

    Yes

    B.

    No

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    No answer description available for this question.


Be The First To Comment