Sir, At 2:50, in line Number -> 5, yha pe ’ *out ’ use kr rhe hain. ’ &out ’ aur ’ *out ’ me kya difference hai. ise kha use kiya ja skta hai?
I have a doubt in syntax
Hi. so it is used to send the array by reference. If any changes are made in array in recursive call those changes will be reflected in original array.
Sir, original array me changes krne ke liye, Apn ‘&’ ka use krte hai na ?
u can write *out also… it will also get updated
it means, u can use any one of these syntax ‘*out’ or ‘&out’ for updating the array in main function?
yes. hope ur doubt is cleared now. if u have any confusion u can simply use vector also
yes sir, Now it’s clear … thank you
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.