Versions Compared

Key

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

...

Code Block
bgColor#ccccff
/* compile using gcc4.3.3 */
void foo (void) {
    int i = 3;
    printf("i value: %d\n", i);
}

Implementation Details (ambiguous interface)

In gcc-4.3.3, when the above compliant solution is used and foo(3) is called, gcc will complain the following, which alerts programmer the misuse of the function interface.

Code Block
bgColor#FFCCCC

error: too many arguments to function ‘foo’

Noncompliant Code Example (information outflow)

...