Pointer | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
+ 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