I am new to this group.
Please explain the following program. I ran this program under Sun OS.
Here is the program.
Expand|Select|Wrap|Line Numbers
- typedef struct emp
- {
- typedef struct emp1
- {
- int a;
- char c[10];
- float f;
- } emp1;
- };
- main()
- {
- }
"structsize1.c", line 4: syntax error before or at: typedef
"structsize1.c", line 4: cannot recover from previous errors
cc: acomp failed for structsize1.c
Why typedefs are not allowed to nest?
Thanks & Regards
Sathish