There are three ways to declare a function
1. Define the function before it is called by any other function.
What the program will do
Compare two integers in the variables a and b.
If a is less than b, the function will return -1.
If a is equal to b, the function will return 0.
If a is greater than b, the function will return 1.
Create a file named myfile.c, write the following code:
int numcmp(int a, int b)
int x=10, y=20, z;
Compile the above code and run.
2. Declare the prototype of the function.
I would like to learn more!