Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The non-compliant code example uses the identifier-list form for parameter declarations.

Code Block
bgColor#FFCCCC
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
bgColor#ccccff
extern int max(int a, int b) {
  return a > b ? a : b;
}

...