Hi,
Could anyone tell me in words what this code is implementing & perhaps tell me what is the screen output?
I think there is an array of 6 elements, via using the pointer this functions is used to manipulate the number elements within the array - as in this case an extra 3 elements have been added to array therefore 9 elements. I am not too sure.....please help!
Code:
int arr[6] = {4, 2, 5, 11, 8, 14}
int *p;
p = arr + 3;
printf("%d\n", *p);
p--;
printf("%d\n", *p);
(*P)++;
printf("%d\n", *(p+1));
Thanks