you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 2 years ago

tbh I always think about it as 'p' is a pointer to int

therefore *p is an int

therefore I should call it int *p;

however, of course, you should use what your team prefers. Having good yet inconsistent style is worst than mid consistent style.

  • source
  • parent