Recursion/rat_maze.cpp
//function to ckeck whether x,y values is valid or not
function to ckeck whether x,y values is valid or not
function to ckeck whether x y values is valid or not
bool isSafe(int maze[N][N], int x, int y)
{
	if (
		x >= 0 && x < N && y >= 0
		&& y < N && maze[x][y] == 1)
		return true;
	return false;
}
bool isSafe ( int maze [ N ] [ N ] , int x , int y ) { if ( x >= 0 && x < N && y >= 0 && y < N && maze [ x ] [ y ] == 1 ) return true ; return false ; }
function to ckeck whether x,y values is valid or not
function to ckeck whether x y values is valid or not
// if (x, y outside maze) return false