displays the chessboard with all the legal knight 's moves
void print ( int a [ ] ) { for ( int i = 0 ; i < N ; ++ i ) { for ( int j = 0 ; j < N ; ++ j ) printf ( " % d TABSYMBOL " , a [ j * N + i ] ) ; printf ( " STRNEWLINE " ) ; } }