Advertisements
Advertisements
प्रश्न
What happens when a method is passed by reference? Explain.
संक्षेप में उत्तर
उत्तर
- 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."
- Stated differently, the real and formal parameters refer to identical memory locations.
- 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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?