English

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

Advertisements
Advertisements

Question

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

Answer in Brief

Solution

  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
  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. 7. | Page 337
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×