Home > DeveloperSection > Forums > How to create anonymous union in C ?
Samuel Fernandes
Samuel Fernandes

Total Post:154

Points:1082
Posted on    June-17-2013 5:16 AM

 Visual C++ Visual C++ 
Ratings:


 1 Reply(s)
 839  View(s)
Rate this:
How to create anonymous union in C++?


Dev Patel

Total Post:26

Points:182
Posted on    June-17-2013 5:35 AM

You can create anonymous union in C++ as following

union{
int i;
char[4];
};

Don't want to miss updates? Please click the below button!

Follow MindStick