Please explain this answer πŸ˜“ | Sololearn: Learn to code for FREE!

-1

Please explain this answer πŸ˜“

https://www.sololearn.com/post/1056795/?ref=app

c

4/26/2021 4:42:27 PM

Thirt13n

3 Answers

New Answer

+4

Each index of array 'p' is a pointer to an element in the first array. ptr is double pointer = address of the array p's starting index (say x) ptr++ = address of p+1 = x+1 ptr - p = x + 1 - x = 1 **ptr = *(*ptr) *(*ptr) = *(*(p+1)) = *(p[1]) = *(a+3) = a[3] = 40 output: 140

+3

Problem set by Gawen steasty always gives wrong ansπŸ˜… Edit : I too learnt now only thnks

0

Again thank you Infinity 😊