I'm having some problem with a conflicting type that I don't understand. I want to change a date previously set but it's giving me a headache.
int main(){
float any=11;
llegirany(&any);
printf("%f",any);
getch();
}
void llegirany(float * any){
float auxi;
auxi=llegirinterval(1,31);
*any= auxi;
}
float llegirinterval(float n1,float n2){
float aux;
do{
scanf("%f",&aux);
}while(aux>n2 || aux<n1);
return aux;
}
And I get this output error:
65 7 D:\DAM\PRo\pruebaconio.c [Error] conflicting types for 'llegirinterval' 62 7 D:\DAM\PRo\pruebaconio.c [Note] previous implicit declaration of 'llegirinterval' was here
Can somebody help me please?