Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Linux games

Name: Linux games 2011-11-25 10:34

Linux games

Name: Anonymous 2011-11-25 16:33

>>30
You can't do [const]void*[/const] pointer arithmetic. That should answer your entire post.

Actually, you can't do pointer arithmetic with any incomplete pointer type. You can't perform:


struct s *p1, *p2;
p1 - p2;


without defining struct s.

sizeof(void) is not defined, but some implementations give it a size of zero (which is rather logical) as an extension. I'm not sure whether this is a violation of the standard, but I believe it is not.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List