What happens when I declare say multiple variables on a single line? e.g.
int x, y, z;
All are ints. The question is what are y and z in th
In your first sentence:
They are all ints.
int
However, in the second one:
int* x, y, z;
Only x is a pointer to int. y and z are plain ints.
x
y
z
If you want them all to be pointers to ints you need to do:
int *x, *y, *z;