C++ pointers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

C++ pointers

'More on Pointers', slide 2, the second-last line is misleading: "All three of the preceding statements are equivalent, and return the same result." They are equivalent, but run sequentially (as written in the slide), they DON'T return the same result. The results are: 9, 13, 17. Namely each time the value in the pointer is incremented by 4.

7th Feb 2019, 6:38 PM
Andrej
Andrej - avatar
1 Answer
0
It just means to say that any of the three statements could be use interchangeably and do the same function. They are not supposed to be executed all sequentially at the same time. Try using them one at a time.
3rd Dec 2019, 3:23 AM
Naveen Maurya
Naveen Maurya - avatar