Is (*ptr).age the same as ptr->age?
Thanks.
Is (*ptr).age the same as ptr->age?
Thanks.
but why is this on the C board? C doesn't have pointers, but C++ does.
What?? Of course C has pointersOriginally posted by face_master
C doesn't have pointers, but C++ does.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
it does? I must have been looking at some dodgy internet pages again, then...
Last edited by face_master; 05-16-2002 at 06:00 AM.
>C doesn't have pointers, but C++ does.
...
-Prelude
My best code is written with the delete key.
> C doesn't have pointers, but C++ does.
Woah
> I must have been looking at some dodgy internet pages again
This should be a crime.
Compile that with a strictly C compiler.Code:#include <stdio.h> int main() { char * msg = "Hello World"; printf(msg); return 0; }
Code may not be the best, but the point is C has pointers!?!?!?
The world is waiting. I must leave you now.