0
Why value of a doesn't change in this code?
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"
+ 3
Your *mystery()* function is not swaping anything
+ 1
https://code.sololearn.com/cf2iKDz16kST/?ref=app
See this. You need to dereference the pointers if you want to swap their values.
+ 1
Thanks!!
0
Why ?is there somekind of error in it ? Or?