DEV/DEV1.1/TP09/zero.c

16 lines
185 B
C
Raw Normal View History

2022-11-15 11:27:45 +01:00
#include <stdio.h>
#include <stdlib.h>
void zero(double* a){
*a=0.0;
}
int main(void)
{
double x=37.5;
printf("avant: %f\n",x );
zero(&x);
printf("apres: %f\n",x );
return 0;
}