ICSE Class 10 Computer Applications Question 9 of 43

User-Defined Methods — Question 9

Back to all questions
9
Question

Question 8(b)

Identify the errors in the function skeletors given below :

float mult (int x, y) { }
Answer

The data type of argument y is not specified.

The prototype of the function must specify the data type of the formal parameters. The correct statement is as follows:

float mult (int x, int y) { }
Get the Bright Tutorials app Stuck on a question? Ask Bright Buddy — your AI tutor — for step-by-step help in the app.