bonjour,

J'ai un problème avec ce code

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
 
#include <stdio.h>
# define NEL 5 
main()
 
{
  void maxmin(float x[],int NEL,float * arg1,float * arg2);
    float max;
   float min;
   float tab[NEL] = {2,5,9,7,4};
   maxmin(tab,NEL,&min,&max);
   printf("Valeur min : %f, Valeur max : %f",min,max);
 
}   
 
void maxmin (float x[],NEL,float *arg1,float *arg2)
 
{
  int i;
  * arg1 = x[0];
  * arg2 = x[0];
 
  for(i=0;i<NEL;i=i+1)
      if(x[i]<arg1) arg1=x[i]);
  for(i=0;i<NEL;i=i+1)
      if(x[i]>arg2) arg2=x[i]);    
 
}
la ligne " void maxmin(float x[],int NEL,float * arg1,float * arg2); " me renvoie une erreur

merci d'avance pour expliciation