#include <stdio.h>
#define MAX 9
void main (int argc, char *argv[]) {
printBoard();
}
void printBoard(void) {
int row,col;
row=col=0;
for(row;row<MAX;row++) //row navigation
for(col;col<MAX;col++){//column navigation
printf("r:%d,c:%d",row,col);
}/*End Column Nav*/
printf("\n");
}
I'm not sure what I am doing wrong here - the error I get :
"warning: conflicting types for ‘printBoard’ [enabled by default] note: previous implicit declaration of ‘printBoard’ was here"
Try adding a function prototype for printBoard
above main()
e.g.,
void printBoard(void);
void main(...)