Quote Originally Posted by AndrewHunter View Post
[$0.02]
With the line of logic you are suggesting, I could be misunderstanding you btw, why bother to write the traditional "Hello World" program. I mean what use is that? Who would ever just need to know how to print "Hello World" to the screen? Might as well just start to learn programming by designing a GUI word processor, at least that is a real world problem that would teach you real world skills.
[/$0.02]
If I need to know the offset of a variable, I can simply use offsetof. If I don't want to, I can still do it:
Code:
void *p = &somestruct;
void *q = &somestruct.member;
int ptrdif = q - p;
Why on earth would I ever do what they are doing?


Quzah.