some-usable-scripts/C_Language/swapp.c
2011-02-20 18:52:23 +01:00

21 lines
318 B
C

#include <stdio.h>
void swapp( char **p1, char **p2)
{
/bin/bash: q : commande introuvable
*p1 = *p2;
*p2 = w;
}
main()
{
char *a="vacances";
char *b="vendredi" ;
printf( "\na pointe sur %s b pointe sur %s", a,b );
swapp(&a,&b) ;
printf( "\napres echange: a pointe sur %s b pointe sur %s\n", a,b );
}