KnowledgeBoat Logo
|

Computer Applications

Identify the errors in the function skeletors given below :

float mult (int x, y) { }

User Defined Methods

2 Likes

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) { }

Answered By

1 Like


Related Questions