int *p, x=11, y=13; p=&x; *p=y ; y=12; please explain the values of x,y and p. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

int *p, x=11, y=13; p=&x; *p=y ; y=12; please explain the values of x,y and p.

25th Aug 2020, 7:24 AM
Harsh Kant
Harsh Kant - avatar
2 Réponses
+ 1
Values will be 13 and 12 first read about reference variable how its working
25th Aug 2020, 7:43 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
25th Aug 2020, 8:10 AM
Hima
Hima - avatar