referring to the above code sample, how do you update x[2] to 10 using "ptr2"?Code:int x[] = {1,2,3,4,5}; int *ptr, **ptr2; ptr = x; ptr2 = &ptr;
Is it **(*ptr2+2) = 10 or **(ptr2+2) = 10 or *(*ptr2+2) = 10 or *(&ptr2+2) = 10.
As per my understanding,its *(*ptr2+2) = 10
Just want to confirm it.