KnowledgeBoat Logo
|

Computer Applications

Identify the errors in the function skeletors given below :

float doer (int, float = 3.14) { }

User Defined Methods

3 Likes

Answer

Assignment is not allowed in function prototype. The argument list must contain the data type along with the variable name. The correct statement is as follows:

float doer (int n, float pi) { }

Answered By

3 Likes


Related Questions