7 ms·
Also I made an error - should have been *(1+a) = 1; Still bad but not as bad.
by ajuc 11y ago
Also I made an error - should have been
*(1+a) = 1;
Still bad but not as bad.
- AnimalMuppet 11y agoOr: 1[a] = 1;
- AnimalMuppet 11y agoAfter thinking about it a bit, that also is well-typed in C. (You can argue that it shouldn't be allowed, but that's a different argument than that the language is not strongly-typed because of that feature.)