+ 1

Pointer

int x = 5; int *p = &x; x = x + 4; x = *p + 4; *p = *p + 4; ———————————— Why *p == x ?

10th Mar 2018, 4:15 AM
ć»–ć”ŻèŸ°
ć»–ć”ŻèŸ° - avatar
1 Antwort
+ 1
cause *p access the value of x using address of x as it's value!
10th Mar 2018, 4:51 AM
ajbura
ajbura - avatar