I was trying to build a very simple program in C that returns a float value from a function, but for some reason I got an error.
#include<stdio.h>
int main(){
double returning;
returning = regre();
printf("%f", returning);
return 0;
}
double regre(){
double re = 14.35;
return re;
}
The error am getting says:
conflicting types for 'regre'
previous implicit declaration of regre was here