Can anyone trace the pointer execution? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can anyone trace the pointer execution?

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

21st Nov 2019, 3:33 PM
Preity
Preity - avatar
3 Answers
+ 5
Q-32) array[2] points to "h", then +1 gives the output "o". Q-33) option A is pointing to something that is not in the array. Always look for the value at or dereferencing operator (*) to see where it is placed in the expression to get the answer right.
21st Nov 2019, 4:09 PM
Avinesh
Avinesh - avatar
+ 2
~ swim ~ agreed
21st Nov 2019, 4:33 PM
Avinesh
Avinesh - avatar
+ 1
~ swim ~ Q-33) there is some correction in option C I guess, that is written separately.
21st Nov 2019, 4:28 PM
Avinesh
Avinesh - avatar