Funky chess board doubt in code 2

sir why is the value in visited array changing from 0 to 1 automatically?

code–>https://ide.codingblocks.com/s/97790

The line where you are printing visited[0][0], it prints 0. It is not printing 1.

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.