Home » C Programming » Structures, Unions, Enums

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

Correct Answer: Error: in structure declaration

Explanation:

The structure emp contains a member e of the same type.(i.e) struct emp. At this stage compiler does not know the size of sttructure.

← Previous Question Next Question→

More Questions from Structures, Unions, Enums

Discussion & Comments

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