0

What does it mean when we write for example *pi=&a ????

28th Apr 2018, 7:23 AM
Great Dream
Great Dream - avatar
3 Antworten
+ 2
Probably p is a pointer to pointer variable int i= 1; int i2= 2; int* a= &i; int* b= &i2; int** p= &b; *p= &a; assign to "p" the adress of "a" pointer
28th Apr 2018, 8:39 AM
KrOW
KrOW - avatar
0
*p is a pointer variable. *p points to the memory address of variable 'a'. *pi is dereferencing a pointer. You might wanna revise pointers tutorial.
28th Apr 2018, 7:39 AM
Akib
Akib - avatar
0
thank you💪
28th Apr 2018, 8:07 AM
Great Dream
Great Dream - avatar