3 ms·
The biggest problem with this is that you cannot assign, pass, or return an "instance" of the array struct itself. That's because it's declared as an unnamed st
by hgs3 4y ago
The biggest problem with this is that you cannot assign, pass, or return an "instance" of the array struct itself. That's because it's declared as an unnamed struct and in C two unnamed structs are not type compatible even if they have identical fields. C23 did improve struct compatibility [1] but unfortunately not for unnamed structs.
[1] https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3003.pdf https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3003.pdf