+ 2
But *ptr stores the actual value of the varible x right? Then why is it written *ptr=&x when it does not store its address.
3 ответов
+ 1
Its address will be stored in ptr only right?
+ 1
*ptr is a pointer that stores the memory location of a variable. It does not store the actual value but the address where actual value is placed...
+ 1
Thankyou so much:)