C function syntax, parameter types declared after parameter list
c, function, syntax
Solution
That's the old-style syntax for parameter lists, which is still supported. In K&R C you could also leave off the type declarations and they would default to int. i.e.
main(argc, argv)
char *argv[];
{
return 0;
}
would be the same function.
Problem
I'm relatively new to C. I've come across a form of function syntax I've never seen before, where the parameter types are defined after that parameter list. Can someone explain to me how it is different than the typical C function syntax? Example: ``` int main (argc, argv) int argc; char *argv[]; { return(0); } ```