In the below piece of code :
union
{
float dollars;
int yens;
}price;
Is price an instance of an anonymous union or is it the name of the union itself. It looks to me like an instance but the author of the code says it's the name of the union.
Now, the second question - Suppose if this union is embedded in a structure like below:
struct
{
char title[50];
char author[50];
union
{
float dollars;
int yens;
}price;
}book1;
Would an access book1.dollars be valid?