Why we dont pass refrence visited bool and stack in cycle function

like
void helper_function(int k ,bool *&visited,bool *&stack) because we have to change on that function

hello @Baapcoder123
what bhaiya is doing is pass by pointer.

what u are saying is pass by refernce.

both will have same impact . only syntax is different.
read about pass by pointer and pass by reference.

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.