4 ms·
Yep, it's basically undefined because a void type has no known size to do pointer arithmetic with.
by fintler 16y ago
Yep, it's basically undefined because a void type has no known size to do pointer arithmetic with.
- koenigdavidmj 16y agoGCC whines and moans, but treats it like a pointer to char.
- tptacek 16y agoGCC does not whine and moan about this, even if you ask for it to.
- koenigdavidmj 16y agoOh, right. (Forgot that my `gcc` is a shell script that adds a bunch of `-W` options.) You can ask for it with -Wpointer-arith.