Q:

int* x vs int *x in c

They are the same to the compiler therefore, *x IS PREFERED! Why:
int* x, y, z;
A programmer understands that x, y and z are All pointers... That's a LYE!
Only x is a pointer.
--------------------------
int *x, y, z;
We can clearly understand that X IS THE ONLY POINTER.
0

New to Communities?

Join the community