I want to initialize a 2-d array gameBoard and display the result on screen. Will the following nested for loops work? I'm having trouble displaying it on the screen so I can't tell if this is working correctly or not.
for (NSInteger x = 0; x <= 2; x++)
{
for (NSInteger y = 0; y <=2; y++)
{
gameBoard [x][y] = 0;
NSLog(@"%ld"), gameBoard [x][y];
}
}