Is it possible to swap the addresses two pointers are pointing to? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is it possible to swap the addresses two pointers are pointing to?

Rather than the usual practise of switching values, is there a way to achieve this purpose?

17th Mar 2020, 2:24 AM
YosDisIzGud
YosDisIzGud - avatar
2 Answers
0
Jay Matthews that is helpful, many thanks! An additional question, could the swapping be done in a function, but not in the main function?
17th Mar 2020, 4:02 AM
YosDisIzGud
YosDisIzGud - avatar