• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using typedef in union

 
Anand Damodaran
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I can't able to declare typedef in the union,say,

union xyz{
typedef struct bio{
char name[100];
int age;
float salary;
}b;
char a[sizeof(struct bio)];

};

it works well if i remove typedef keyword.

why is it so?


with respect
Anand
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic