+ 1

whats wrong with the following statement?

// call out ' Function();' in the main function without passing argument. Function(); Int Function(int age) { Statement; }

11th Jul 2017, 1:27 AM
Benson Tan
Benson Tan - avatar
2 Respuestas
+ 8
Your function definition requires that the function should be called with 1 parameter. To eliminate the requirement, you have to redefine your function: int Function() { //statement } int main() { Function(); //codes }
11th Jul 2017, 1:49 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
You are calling a function named Function that takes a parameterq and you gave none, to do this: Function(13); You can put any number in the parameter but only one number and only a number
11th Jul 2017, 1:44 AM
Complex
Complex - avatar