Re:Learning that you can use unions in C for grouping things...
by remram on Sunday August 01, 2021 @12:24PM
(#28027464)
The first example seems wrong, instead of `struct sub { ... };` what is meant is `struct { ... } sub;`
[ Parent
| on HN ]
Re:Learning that you can use unions in C for grouping things...
by siebenmann on Sunday August 01, 2021 @06:23PM
(#28030713)
You're right; thanks for noticing and I've updated the first example. My C is a bit rusty these days and I didn't check it with a compiler the way I should have.
(I'm the author of the linked-to article.)