language: C99 strict (gcc-4.7.2)
date: 717 days 8 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
double f(); //function declaration
int main(void) 
{
    printf("%f\n", f(100.0));
}
double f(float param) //function definition
{
   return 5 * param ; 
}
 
 
prog.c:7: error: conflicting types for ‘f’
prog.c:8: note: an argument type that has a default promotion can’t match an empty parameter name list declaration
prog.c:2: error: previous declaration of ‘f’ was here