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:
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
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment