4 ms·
While a few of these were interesting I'd love to see a short technical explanation of each quirk for the feeble high-level programmer (me). The first one for e
by xcdzvyn 4y ago
While a few of these were interesting I'd love to see a short technical explanation of each quirk for the feeble high-level programmer (me). The first one for example, is foo initialised? How so?
- veltas 4y agoI think it's aimed at C programmers. foo is a struct, so it's a type, it's not a variable. The point is just that struct bar is also defined by the definition of struct foo.
- coliveira 4y agoThe reason is that a struct doesn't generate a new scope, like in C++. If you define something inside a struct it will also be available outside of the struct.