हिंदी

What happens when a method is passed by reference? Explain. - Computer Applications

Advertisements
Advertisements

प्रश्न

What happens when a method is passed by reference? Explain.

संक्षेप में उत्तर

उत्तर

  1. The procedure of sending the reference (the memory location's reference address) of the actual parameters to the formal parameters is known as "pass by reference."
  2. Stated differently, the real and formal parameters refer to identical memory locations.
  3. The actual parameters are, therefore, going to change properly if any changes are made to the formal parameters while the technique is operating.
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: User - Defined Methods - EXERCISES [पृष्ठ ३३७]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 5 User - Defined Methods
EXERCISES | Q VI. 7. | पृष्ठ ३३७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×