Почему звездочка в объявлении указателя относится к идентификатору, а не к типу данных?
Глупый вопрос, но я пытаюсь понять основную механику / философию, чтобы укрепить мое понимание.
int myInt; // declares a variable of type integer, named myInt. Intuitive.
int* myPtr; // declares a variable of type pointer-to-integer. Also intuitive.
int myInt2, myInt3; // two more integer variables.. yay!! This makes sense.
// so the pattern is [type] [identifier] <,more-identifiers>;
int* myInt4, myInt5; // an int pointer then an integer. Brain hurts!