B
borophyll
I don't understand the difference between these two declarations
int foo(char a, char b)
{
...
}
int foo(a, b)
char a, b;
{
...
}
What is the usefulness of the second form? Is there any difference?
Secondly, I notice that if a declaration list is not included
following an identifier list, gcc warns that the types of all the
identifiers will default to int. Is there somewhere in the spec that
states a default type given to identifiers if it is not explicit? If
so, can someone please give me a pointer to the section? Or is this
just a gcc extension/assumption?
Regards,
B.
int foo(char a, char b)
{
...
}
int foo(a, b)
char a, b;
{
...
}
What is the usefulness of the second form? Is there any difference?
Secondly, I notice that if a declaration list is not included
following an identifier list, gcc warns that the types of all the
identifiers will default to int. Is there somewhere in the spec that
states a default type given to identifiers if it is not explicit? If
so, can someone please give me a pointer to the section? Or is this
just a gcc extension/assumption?
Regards,
B.