What would be the value of array and p after executing
int array[] = {1,2,3}, *p = array;
a. *p++;
b. (*p)++;
c. *p++; (*p)++
I know the answer is
a) array = {1,2,3} and *p = 2
b) array = {2,2,3} and *p = 2
c) array = {1,3,3} and *p = 3
but I just don't understand how. And explanation would be great!
p. I think that was an incorrect edit... I think he wantsp = array+1and similar there.2and back. Though I think that was a typo. I begin to think you're correct.bis wrong.