+ 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 ответ
+ 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