मराठी

What Are the Values of a and B After the Following Function is Executed, If the Values Passed Are 30 and 50: - Computer Applications

Advertisements
Advertisements

प्रश्न

What are the values of a and b after the following function is executed if the values passed are 30 and 50?

void paws(int a, int b) 
{ a = a + b; 
  b = a - b; 
  a = a - b;' 
System.out.println(a + "," + b); 
} 
एका वाक्यात उत्तर

उत्तर

The value of a will be 50 and b will be 30. 

shaalaa.com
Introduction of Values and Data Types
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 5: User - Defined Methods - Review Insight [पृष्ठ ३३३]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 5 User - Defined Methods
Review Insight | Q 10. | पृष्ठ ३३३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×