CodePudding user response:
#includeVoid test1 ()
{
Printf (" test1 \ n ");
}
Void test2 (void)
{
Printf (" test2 \ n ");
}
Int main ()
{
Test1 (1, 2);//there will be no error
Test2 (1, 2);//an error parameter number does not match the
return 0;
}
CodePudding user response:
Add a void is that has no parameters, not to lose parameters, function features no distinction, intmain () int main (void) are carried out as the main, but added a void if the call is joined the complains