Compiler Warning (level 1) C4024

'function' : different types for formal and actual parameter 'number'

You called function with parameter number different from the function declaration. For instance, if you prototype a function with a char * and call it with an int, you’ll get this message.

The actual parameter will be passed without change, and the function will convert the parameter's type to the type expected by the function.

Here is an example of code that causes the warning:

void func(char *var);

void main() {

    func(5);  // warning 4024, func called with int
}