Which of the following statements is true after execution of the program?
int a[10],I,*p;
a[0]=1; a[1]=2; p=a; (*p)++;
a[0]=2
a[1]=3
a[1]=1
a[0]=3
Answer: Option A.
Explanation: base adderss of array a[] is assigned to p, *p gives value hold by base address, thus (*p)++ increment the value hold by base address by one