ICSE Class 10 Computer Applications
Question 8 of 43
User-Defined Methods — Question 8
Back to all questions 8
Question Question 8(a)
Identify the errors in the function skeletors given below :
float average (a, b) { }The data type of arguments a and b is not specified.
The prototype of the function must specify the data type of the formal parameters. The correct statement is as follows:
float average (float a, float b) { }