7th Jan 2021, 5:10 AM
Rishab Sharma
Rishab Sharma - avatar
5 Réponses
+ 4
You are just making different pointers(ptra,ptrb) swap the variable they are pointing to. You never changed the value that is stored at "a"
7th Jan 2021, 5:20 AM
Arsenic
Arsenic - avatar
+ 3
Your *mystery()* function is not swaping anything
7th Jan 2021, 5:15 AM
Arsenic
Arsenic - avatar
+ 1
https://code.sololearn.com/cf2iKDz16kST/?ref=app See this. You need to dereference the pointers if you want to swap their values.
7th Jan 2021, 5:19 AM
Temporary
+ 1
Thanks!!
7th Jan 2021, 5:21 AM
Rishab Sharma
Rishab Sharma - avatar
0
Why ?is there somekind of error in it ? Or?
7th Jan 2021, 5:17 AM
Rishab Sharma
Rishab Sharma - avatar