Ok. Normally, I prototype functions like this:
Code:
//prototype
int function(int var1, char var2, char *point, type variable);
//function
int function(int var1, char var2, char *point, type variable)
{
code;
etc. etc. etc.;
[...]
}
But, I've also seen in some programs this:
Code:
//prototype
int function();
//function
int function(var1,var2,point,variable)
int var1;
char var2;
char *point;
type variable;
{
code;
etc. etc. etc.;
[...]
}
Apparently, both of them work. But my question is: What is the difference?
Thanks!