Is it possible to swap the addresses two pointers are pointing to? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponses
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