Computer Science, asked by arinrajnjms, 6 months ago

8. Identify the errors in the method skeletors given below:
(i) float average (a, b) { }
(ii) float mult (int x, y) }
(iii) float doer (int, float = 3.14) { }​

Answers

Answered by johnygatha
25

Answer:

8. (i) In the argument list, the variables a and b doesn’t use the data type.

(ii) In the argument list, the variable y doesn’t use the data type.

(iii)In the argument list, the variable name is not mentioned and also the float data type stores the value 3.14 without including the variable.

Explanation:

Answered by batwayn
1

Answer:

(i) float average(int a, int b){}

(ii)float mult(intx,inty){}

(iii) float doer (int x, float y =3.14)

Similar questions