BUT2/DEV/DEV1.1_suite/TP_Recursivité/Q3_tableau.c~
2023-10-23 13:23:36 +02:00

19 lines
255 B
C

#include <stdio.h>
#include <stdlib.h>
void printTab(double* tab){
if (*tab){
printf("%.2lf, ",*tab);
printTab(tab+1);
}
else{
printf("\n");
}
}
int main(void){
double tab[]={8.36,666,3.141592,32};
printTab(tab);
return 0;
}