expected formal parameter list, not a type list
A function definition contains a parameter type list instead of a formal parameter list. ANSI C requires formal parameters to be named unless they are void or an ellipsis (...
). The following sample generates C2055:
void func(int, char) { // C2055 // use the line below to resolve the error // void func (int i, char c) { } void main() { }