M
Mister X
Hi
Could someone explain the difference between:
int *x;
int* x;
how, why, history, etc.
Could someone explain the difference between:
int *x;
int* x;
how, why, history, etc.
Mister X said:Hi
Could someone explain the difference between:
int *x;
int* x;
how, why, history, etc.
Hi
Could someone explain the difference between:
int *x;
int* x;
how, why, history, etc.
Mister X said:Hi
Could someone explain the difference between:
int *x;
int* x;
bartc said:These are interchangeable. The star however belongs to the following
name, not the type, so the second form would look misleading (if there
were more names following).
Agreed.
But in a cast:
p = (int*) a;
The star in this case belongs to the type.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.