in the last part of the code in pass by reference why the value is 11 in main function?
Didnot understand the last part
@Tanushree hey,last part me hm adrees pass krrhe function me jo ki pointer me pass horha hai jise pass by reference bolte hai ,kyunki adress pass horha hai to original memory location of variable a me change horha hai ,pass by value me hmara duplicate variable bnta tha usme chnge krte the to hmare original variable me change nhi hota tha ,but in pass by reference hm adress pass krrhe hai to us adress me jo rakha hai usme change krrhe hai hence original me hi change horha hai that’s why woh increment hokr 11 horha hai ,hope you get it
Yes sir,Thanks for making me clear
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.