...
The non-compliant code example uses the identifier-list form for parameter declarations.
| Code Block | ||
|---|---|---|
| ||
extern int max(a, b)
int a, b;
{
return a > b ? a : b;
}
|
...
In this compliant solution, extern is the storage-class specifier and int is the type specifier; , max(int a, int b) is the function declarator; , and the block within the curly braces is the function body.
| Code Block | ||
|---|---|---|
| ||
extern int max(int a, int b) {
return a > b ? a : b;
}
|
...