I think there will be no asterisk before "ptr" in this case | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I think there will be no asterisk before "ptr" in this case

19th Nov 2018, 4:59 AM
Shubham Pal
Shubham Pal - avatar
2 Answers
+ 4
Hey Shubham Pal ! Currently, it's a little difficult to understand what your question is, so could you try to be a little more clear on what you need help with. For example, if this was intended for another post, I would recommend linking to it as to give people a better understanding of where your question may be coming from. https://www.sololearn.com/discuss/333866/?ref=app
19th Nov 2018, 5:11 AM
Faisal
Faisal - avatar
+ 3
"no asterisk before "ptr" " Assuming this `ptr` guy is a pointer, then by the above statement the following are "predictable"! ptr; // address of the location pointed by ptr ptr + 1; // pointer arithmetic -- next address *ptr; // dereferencing the content pointed by ptr *(ptr + 1); // pointer arithmetic and dereference the next content
19th Nov 2018, 5:48 AM
Babak
Babak - avatar