I am struggling with understanding the correct pointer syntax, various sources seem to be doing it differently.
Which one of these is correct?
int* p = NULL;
int * p = NULL;
int *p = NULL;
and these?
*p = &x;
* p = &x;
Sorry for the beginner question but I can't seem to find a straight answer.
Does the *
goes right after the data type, right before the var name or in between?