1.

What is the error in the following structure definition? struct employee {inteno ;chamame [20] ;char dept;}Employee e1,e2;

Answer»

Errors:

1. ‘i’ is missing.

2. Spaces are missing at two places

3. Structure name given wrongly.

Corrected structure:

struct employee {int eno; char ename [20];

char dept;}

employee e, e2;



Discussion

No Comment Found