What is difference between &(address) and *(pointer) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is difference between &(address) and *(pointer)

-

14th Jun 2018, 7:09 PM
Rahul Bavannavar
Rahul Bavannavar - avatar
2 Answers
+ 1
& gives you the addres of the var and if you use * in the whole var is only the address
14th Jun 2018, 7:43 PM
Tim
Tim - avatar
+ 1
& gives you the address of a variable and * gives you access to the variable the pointer is pointing to
14th Jun 2018, 8:53 PM
Max
Max - avatar