Top

Discussion

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;
}

 

  • A.Yes
  • B.No

Answer: A

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment