Not that it at all matters when it comes to compiling the code, but, would it be better for the syntax be:
The way I learned pointers is that the code is read right to left. For example...
is read: somePointer is a pointer to an int.
it seems to me that the code:
would be more confusing for a beginner, especially when you write the code...
int x = 7; int* somePointer; somePointer = &x; *somePointer = 100;
If I was a beginner dealing with the complexities of pointers, I would like to see that the variable name is the one with the asterix (*), instead of the data type. My first question, if I was a beginner would be, where did the asterix come from in the code:
*somePointer = 100;
I hope this argument makes sense. I would like some feedback about what you guys think.