difference between char* s and char *s?

Nov 1, 2017 at 5:26pm
closed account (1vf9z8AR)
I see in linked list they use node* next instead of node *next.

node is a structure.
Last edited on Nov 1, 2017 at 5:26pm
Nov 1, 2017 at 5:34pm
There's no difference. It's a stylistic preference on the part of the programmer.
Nov 1, 2017 at 5:34pm
There is no difference. Both create a pointer to a Node type. Which side the * is on is a matter of preference or coding standards of an organization.
Topic archived. No new replies allowed.