English

Debug the error and rewrite the following method prototype: float operate(int x, float=3.4); - Computer Applications

Advertisements
Advertisements

Question

Debug the error and rewrite the following method prototype:

float operate(int x, float=3.4);

Code Writing

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]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 5 User - Defined Methods
EXERCISES | Q VI. 5. (c) | Page 337
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×