V
vj
is it a valid statement if no y
int *p=&x, x;
int *p=&x, x;
is it a valid statement if no y
int *p=&x, x;
James Kuyper said:What does 'y' have to do with it?
First of all, that's a pair of declarations, it's not a statement.
Secondly, unless there's prior declaration of x that will end up being
hidden by this one, you're trying to use 'x' before it's been declared.
That's easily fixed:
int x, *p=&x;
James Kuyper said:is it a valid statement if no y
What does 'y' have to do with it?
int *p=&x, x;
First of all, that's a pair of declarations, [snip]
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.