0
Pointers section problem
how *p is 2 value however it doesn't take any value at beginning https://code.sololearn.com/cWlqp042XLki/?ref=app
2 ответов
+ 3
p is pointer and it is holding the address of x. If you print p like that,
cout<< p; //You see the address of the thing that you assigned.
but if you put asterisk sign before p,
cout<< *p // it shows you the value of that it is holding.
* is dereference operator
0
thank you mustafa . I think pointers needs more time to understand it.