File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes C / C++ and the fly likes using typedef in union Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Languages » C / C++
Bookmark "using typedef in union" Watch "using typedef in union" New topic
Author

using typedef in union

Anand Damodaran
Greenhorn

Joined: Oct 04, 2012
Posts: 21
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using typedef in union
 
Similar Threads
Typedef
Data Structure
Data Structure Transfer
Data Structure
What is Classifier Level?