Export (0) Print
Expand All
Expand Minimize

Compiler Error C2192

Error Message

parameter 'number' declaration different

A C function was declared a second time with a different parameter list. C does not support overloaded functions.

The following sample generates C2192:

// C2192.c
// compile with: /Za /c
void func( float, int );
void func( int, float );   // C2192, different parameter list
void func2( int, float );   // OK

Community Additions

© 2014 Microsoft