Previous Next Up Index Contents

Exercice 10.2

Affichage:

1
1


0
1

Implémentation:

#include <stdio.h>

main()
{
 void P(int X, int *Y); /* Prototype de la fonction appelée */ 
  int A,B;
 A=0;   
 B=0; 
 P(A, &B);
  printf("%d %d \n", A, B);
 return 0;
}

void P(int X, int *Y)
 {
 X = X+1;
 *Y = *Y+1;
 printf("%d %d \n", X, *Y);
}


Previous Next Up Index Contents

Feedback - Copyright © 1993,1996,1997 F.Faber