Advertisements
Advertisements
Question
Debug the error and rewrite the following method prototype:
float operate(int x, float=3.4);
Code Writing
Advertisements
Solution
float operate(int x, float a)
{a=(float) 3.4; } shaalaa.com
Is there an error in this question or solution?
Chapter 5: User - Defined Methods - EXERCISES [Page 337]
