Call by Value and Call by Reference in C++ HINDI Urdu User Define Functions
Reference:
User define functions in C++ Programming - Tutorials is also available here: https://t4tutorials.com/user-define-f...
Call by Value and Call by Reference in C++ Programming - Tutorials is also available here: https://t4tutorials.com/call-by-refer...
pass by reference c++.
pass by value c++.
Call by value:
In this method when u r calling a function you are passing the value of the variable to the arguments in the called function the called function works on the value and that change will not be reflected in called function.
Call by reference:
In this method you are passing the address of the variable in the calling function to the called function the address is de-referenced using *operator and any change in the value will affect the original value as you are working with the address