Please explain this answer 😓 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1
26th Apr 2021, 4:42 PM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
3 Answers
+ 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
26th Apr 2021, 4:56 PM
Infinity
Infinity - avatar
+ 3
Problem set by Gawen steasty always gives wrong ans😅 Edit : I too learnt now only thnks
26th Apr 2021, 4:56 PM
Aditya
Aditya - avatar
0
Again thank you Infinity 😊
26th Apr 2021, 4:59 PM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar