हिंदी

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×