APL/APL1.1/TP15/zero.c
2021-10-18 16:28:46 +02:00

16 lines
228 B
C

#include<stdio.h>
#include<stdlib.h>
void zero(double* a) {
*a = 0.0;
}
int main(int argc, char * argv[]) {
double x=37.5;
printf("avant : %f\n", x);
zero(&x);
printf("après : %f\n", x);
return EXIT_SUCCESS;
}