APL/APL1.1/Dev1.1/Fonctions/zero.c

15 lines
220 B
C
Raw Normal View History

2021-11-16 15:32:33 +01:00
#include <stdlib.h>
#include <stdio.h>
double zero(double a) {
a = 0.0;
return a;
}
int main(void) {
double x=37.5;
printf("avant : %f\n", x);
x=zero(x);
printf("après : %f\n", x);
return EXIT_SUCCESS;
}