description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Error C2197 |
Compiler Error C2197 |
11/04/2016 |
|
|
6dd5a6ec-bc80-41b9-a4ac-46f80eaca42d |
'function' : too many arguments for call
The compiler detected too many parameters for a call to the function, or an incorrect function declaration.
The following sample generates C2197:
// C2197.c
// compile with: /Za /c
void func( int );
int main() {
func( 1, 2 ); // C2197 two actual parameters
func( 2 ); // OK
}