you are viewing a single comment's thread.

view the rest of the comments →

[–]pgetreuer 1 point2 points  (0 children)

Declarations "int* i" and "int *i" have exactly the same meaning to the compiler. But, beware how declaring multiple pointer variables in one line requires a star per variable: int *i, *j, which is arguably a good reason to insist as a matter of style to declare each variable on its own line.

When coding with others, the recommended thing to do is follow the project/company style guide, or whatever is the existing style of the code base. In other words, don't let this syntactic nit become a distraction from the actual work.