Home » C Programming » Structures, Unions, Enums

Point out the error in the program? struct emp { int ecode; struct emp *e; };

Correct Answer: No Error

Explanation:

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

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion