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

Pointers

Why this code give this answer? char a='a',b='b'; char *p=&a; char *&r=p; r=&b; Cout<<*p; Answer=b

1st Sep 2018, 3:16 PM
Yas
Yas - avatar
2 Answers
+ 4
One different type of help. You should tag appropriately. If you tag C++, that'll attract people who see Q&A with filter.
1st Sep 2018, 7:45 PM
Roneel
Roneel - avatar
+ 2
thankyou Tind &Roneel ,answer &advice .
1st Sep 2018, 8:36 PM
Yas
Yas - avatar