Please explain this answer ­čśô | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
- 1

Please explain this answer ­čśô

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

26th Apr 2021, 4:42 PM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
3 Antworten
+ 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