I'm a bit confused as to where to place the * when declaring a new pointer.
For example, let's say I've made a linked list and declared a custom structure node
.
I've noticed when I was making speller
, I tried both of the following syntax and the program still compiled and worked:
node *head = hashtable[i];
node* head = hashtable[i];
What is the correct way to write it?