getting wrong output.
ide: https://ide.codingblocks.com/s/244668
Funky chess Board
@Vishal123, your check function is wrong ,
your check function:
bool check(int r , int c , int board[][11]){
if(board[r][c] == 0 (it should be 1 here ) && r>=0 && r<=10 && c>=0 && c<=10 (it should be n here )){
return true;
}
return false;
}
corrected code : https://ide.codingblocks.com/s/245719
In case of any doubt feel free to ask 
mark your doubt as resolved if you got the answer