Is it possible to swap the addresses two pointers are pointing to? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antworten
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