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 A

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.



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers