Brilliant,
Thanks for your help!!
Type: Posts; User: folem001
Brilliant,
Thanks for your help!!
OK, but for it (in this basic example) to give a desired output, they have to be the same as the prototype? For example, if f and r were char's, this wouldn't work..?
But I understand that you can...
Ok, brilliant, I think i finally get it.
So, the prototype is just for the compiler, if the function is defined after main....I'm guessing it would compile with a prototype even if the function...
Sorry quzah, that one I meant to delete the int's so that the type wouldn't be specified. It compiled and ran just fine without the type of x and y being specified, but I should always specify them...
The code was given in the c tutorial:
Cprogramming.com Tutorial: Functions
Just to clarify that the code give:
#include <stdio.h>
Hi all, I'm currently going through the tutorial on c and I am confused by the following code:
#include <stdio.h>
int mult ( int x, int y );
int main()
{