And now - the fun of C
Function prototype
int get_smaller(int a, int b);
OR
int get_smaller(int, int);
Function definition
int get_smaller(int a, int b)
{
if (a < b) return a;
return b;
}
If definition is after main, you must have prototype before main!