Why do we use “int *p” over “int* p”?
This is one of the holy wars among c developers. If you ever want to hear a group of developers screaming at each other, then tell them that the only way to format this pointer declaration is the one way they don’t currently use and then lean back and watch.
The two views are:
Use ‘int* p’, as p is of type ‘pointer to int’ which is only clear if you write ‘int*’ as type. Which is all nice and dandy as long as you are only declaring one variable at a time and the source of some nervous breakdowns of beginners who want to declare two pointers to int and…