Sail E0 Webinar
Question


Point out the error in the program?


struct emp
{
int ecode;
struct emp *e;
};
Options:
A .  Error: in structure declaration
B .  Linker Error
C .  No Error
D .  None of above
Answer: Option C

This type of declaration is called as self-referential structure. 

Here *e is pointer to a struct emp.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers