799 views
0 votes
0 votes
int *p, A[3]={0,1,2};

p=A;

*(P+2)=5;

p=A++;

*P=7;

what are the values stored in the atray A from index 0 to index 2 after execution of the above cod?

1 Answer

Best answer
0 votes
0 votes
i think it produce compiler error

p=A++; //base address of array can't be change
selected by

Related questions

1 votes
1 votes
2 answers
3
0 votes
0 votes
1 answer
4
Gurdeep Saini asked Feb 1, 2019
616 views
is it dangling pointer ?int main(void) { int* p;printf("%d",*p); return 0;} https://ideone.com/IN77el