Please check code for rat in maze problem


getting segmentation fault

hello @sahilkhan2312000131
check now->

I have one doubt: When I am creating array b as integer array, I am getting segmentation fault, but I am creating it as boolean array code runs fine. Why??

becuase of memory consumtion, when u are declaring with bool it is taking less space/memory compared to int matrix thats why.

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.