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
When a function returns a value, the entire function call can be assigned to a variable. (T/F) ?
Identify the errors in the function skeletors given below :
float average (a, b) { }Identify the errors in the function skeletors given below :
float doer (int, float = 3.14) { }Given the method below, write a main() method that includes everything necessary to call given method.
int thrice (int x) { return x * 3 ; }