Hi,
Why would this not work? And what is the right thing to do.
Why would this not work? And what is the right thing to do.
int x,y,z;
printf("Enter three integers: ");
scanf("%d %d %d",&x,&y,&z);
p[0]=&x; //syntax error here
p[1]=&y; //and here
p[2]=&z; //and here