-
-
Notifications
You must be signed in to change notification settings - Fork 38
C11 Anonymous structures and unions #394
Copy link
Copy link
Open
Description
C11 Anonymous structures and unions
https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1406.pdf
struct point { float x, y, z; };
struct location {
char* name;
struct point;
};
int main()
{
struct location location = {};
location.x = 1;
location.y = 2;
}only this is standard
struct location {
char* name;
struct { float x, y, z; };
};
int main()
{
struct location location = {};
location.x = 1;
location.y = 2;
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels