I've written a code to traverse a knight to all the squares on a chess board only once. The problem with this(below) code is, its working till 7x7 and doing nothing after 8x8. The code is
Here [b]chessBoardSize[/b] defines the size(8=> 8x8)
#include<stdio.h>
#include<stdlib.h>
#define chessBoardSize 8
int chessBoard[chessBoardSize][chessBoardSize] = {0};
typedef struct point{
int x, y;
}POINT;
int count=0;
int nextPosition(int x, int y, POINT* array){
int m=...