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!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers
+ 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