You have declared print
... But where is the implementation?
The declaration is just a promise to the compiler that you have a function that take some parameters of a given type and return something a given type.
When the compiler sees you calling the function it will how to report errors if the types don't match...
The implementation is where the compiler knows what to do with the parameters in order to return something from that function.
Here is a sample implementation:
void print(char c, int n)
{
printf("My char is %c and my int is %d
", c, n);
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…