Recent content by kyacout

  1. K

    Why is My C Code Unexpectedly Changing Other Elements in a 2D Array?

    if(gameBoardState[i][col] == 0) { gameBoardState[i][col] = playerTurn; break; } This code is supposed to change the values in gameBoardState[i][col] (a 2D array), but it changes values in other elements too. For example, when col = 0, and i = 5...
Back
Top