Question d’entretien chez KNNX

Write a program to swap two numbers with a third variable and without using a third variable.

Réponse à la question d'entretien

Utilisateur anonyme

22 mai 2021

Using third variable void swap(int a,int b){ int temp=a; a=b; b=temp; } Without using third variable void swap(int a,int b){