Notes in Hindi

Concept of Call By Reference in Hindi

/ BCA / Programming with C and CPP

FAQs

In Call by Value, the actual value is passed to the function, and changes made inside the function do not affect the original variable. (Call by Value में वास्तविक मान को फ़ंक्शन को पास किया जाता है, और फ़ंक्शन के अंदर किए गए बदलाव मूल वेरिएबल को प्रभावित नहीं करते।)
The main limitation of Call by Value is that it does not reflect changes made inside the function on the original variable, making it less efficient for large data structures. (Call by Value की मुख्य सीमा यह है कि फ़ंक्शन के अंदर किए गए परिवर्तन मूल वेरिएबल पर प्रभाव नहीं डालते, जिससे यह बड़े डेटा स्ट्रक्चर के लिए कम प्रभावी होता है।)
Call by Value passes a copy of the variable, while Call by Reference passes the address of the variable, allowing the function to modify the original value. (Call by Value वेरिएबल की कॉपी पास करता है, जबकि Call by Reference वेरिएबल का एड्रेस पास करता है जिससे फ़ंक्शन मूल मान को बदल सकता है।)
Yes, Call by Reference is generally more memory efficient because it avoids copying large data structures and directly works on the original data. (हाँ, Call by Reference आमतौर पर अधिक मेमोरी कुशल होता है क्योंकि यह बड़े डेटा स्ट्रक्चर की कॉपी करने से बचता है और सीधे मूल डेटा पर कार्य करता है।)
Call by Value is safer in terms of data protection because the original data cannot be altered, whereas Call by Reference can modify original data unintentionally. (डेटा सुरक्षा के मामले में Call by Value अधिक सुरक्षित है क्योंकि यह मूल डेटा को नहीं बदलता, जबकि Call by Reference से अनजाने में मूल डेटा बदल सकता है।)

Please Give Us Feedback