C Programming - Structures, Unions, Enums - Discussion

Discussion Forum : Structures, Unions, Enums - Point Out Errors (Q.No. 1)
1.
Point out the error in the program?
struct emp
{
    int ecode;
    struct emp *e;
};
Error: in structure declaration
Linker Error
No Error
None of above
Answer: Option
Explanation:
This type of declaration is called as self-referential structure. Here *e is pointer to a struct emp.
Discussion:
11 comments Page 2 of 2.

Sruthi said:   1 decade ago
What is nested?


Post your comments here:

Your comments will be displayed after verification.