int* x;
int *x;
Well?
Int* x;
Gabriel Morgan
Cameron Reyes
int * x;
Bentley Barnes
/thread
Jace Morris
std::unique
Colton Howard
std::shared_ptr x;
Gavin Morales
int *x, *y;
Gabriel Stewart
int *(x)
Liam Nguyen
I always used
int* x;
Since it seemed more obvious that it was an integer pointer data type, but ever since learning that
int* x, y;
Doesn’t declare two integer pointers I can see why it isn’t correct. I still think it looks cleaner though
Easton Nelson
And it also helps distinguish between declaring a pointer and dereferencing one
Alexander Cruz
int * x;