Developpement/23DEV1.1/TPS1/TP01/15-Fonctions/Zero.c

14 lines
210 B
C
Raw Normal View History

2024-12-09 11:53:11 +01:00
#include <stdio.h>
#include <stdlib.h>
double zero(double* a) {
*a = 0.0;
}
int main(void) {
double x=37.5;
printf("avant : %f\n", x);
zero(&x);
printf("après : %f\n", x);
return EXIT_SUCCESS;
}