Ok, so reading from above, sayine node *next, doesnt create a node/structure of pointers, just a pointer. So the syntax is for clarity only, and the pointer is part of the structure.
So why not just say int *ptr?
Thanks very much and so FAST?
Ok, so reading from above, sayine node *next, doesnt create a node/structure of pointers, just a pointer. So the syntax is for clarity only, and the pointer is part of the structure.
So why not just say int *ptr?
Thanks very much and so FAST?
>So why not just say int *ptr?
Because a pointer to foo isn't the same as a pointer to int. The two have different types, and the type of anything is important information. If the type of the pointer and the type of the pointed to object don't match, the chances of your program crashing are pretty good.
My best code is written with the delete key.