Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C Programming
»
Structures, Unions, Enums
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
Show Answer
Correct Answer:
No Error
Explanation:
This type of declaration is called as self-referential structure. Here
*e
is pointer to a
struct emp
.
← Previous
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment