Is this ansi-c compliant?
hi
You can use pointer notation with an array in C:
int X[]={1,2,3};
int Y=*X[1];
But can you also use array notation with pointer(is it ansi c compliant)?
int i=3;
int *X=&i;
X[0]=10; //is this legal?
thank you
bye
Last edited by xailer; 12-26-2003 at 02:56 PM.
|