my printing for loops are not working ?
it is printing maze ,other variable but not solution array
Rat in a maze problem from backracking
Hello @Harsh_aggarwal,
Your code is working correctly.
The reason why it is printing other character because you have defined the sol[][] array of type char.
and you are assigning the value 1 and 0 to it and the compiler is reading this 1 and 0 as ASCII code of the characters that are visible to you.
Solution Change it’s type to it.
I have corrected your code:
Hope, this would help.
give a like if you are satisfied.
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.