Permuter deux variables sans utilisation d'une variable temp VoirUtilisation de pointeurs
Le code
#include
void change(int *,int*);
int main ()
{
int a=2,b=5;
printf("Avant : a=%d,b=%d\n",a,b);
change(&a,&b);
printf("Apres : a=%d,b=%d\n",a,b);
return 0;
}
void change(int...