I have a simple question in understanding the pointers and struct definitions in the linked list code.
1)
typedef struct node { struct node* next; int val; }node; here if I use two "node" when i initialize node *head; which node I am referring to?
2) Here I use an int val in the struct. If I use a void* instead of int is there any thing thats going to change ?
3)Also if I pass to a function
reverse(node* head) { node* temp = head; or node* temp = *head; //what is the difference between the two } I am sorry if these are silly question I am new to c language.
Thanks & Regards, Brett