In the part " temp=*num1 " does *num1 refer to adress or value ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In the part " temp=*num1 " does *num1 refer to adress or value ?

I can't understand ... pls explain someone https://code.sololearn.com/ce4zw2L6A80O/?ref=app

1st Apr 2020, 5:28 AM
MD Tanveer Hossain Nihal
MD Tanveer Hossain Nihal - avatar
1 Answer
+ 1
<num1> is a pointer that references an `int` value. <temp> is a local `int` variable. temp = *num1; Here means: Read the *value* from the address stored in pointer <num1> and assign that *value* into variable <temp>.
1st Apr 2020, 6:40 AM
Ipang