I get an error when I compile (after fixing your main() and returning 0)
Code:
gcc -Wall -pedantic -o f2c f2c.c
f2c.c: In function ‘main’:
f2c.c:18: error: called object ‘celsius’ is not a function
You have an unused variable named celsius and a function named celsius. I'm guessing you added the variable because you were getting an error about celsius being undefined.
If you're using functions, their prototype must be declared before you use them. A prototype looks like this
Code:
int myFunction(int myArgument1, char myArgument2);
Then, after your main (like you've done), you define the function:
Code:
int myFunction(int myArgument1, char myArgument2)
{
printf("Arg1: %d, Argc2: %c\n", myArgument1, myArgument2);
}