DEV Community

Discussion on: It's a pointer to a type, not a variable with an asterisk in its name

Collapse
 
joelbonetr profile image
JoelBonetR 🥇

PD: Just in case it's not clear in the text above I agree with you in that int* x is the worse way by far.

Between the other two:

int *x;
int * x;
Enter fullscreen mode Exit fullscreen mode

it's just subjective opinion around readability and I won't care much if it's one or the other.