A 2-dimensional 3x3 array of ints, has been created and assigned to tictactoe. Write an expression whose value is that of the first element in the first row.

Respuesta :

The expression whose value is that of the first element in the first row is array[0][0].

It's a grid, like in the game battleship, so the bottom left would be A1 and so on if the grid looked like this:

_ 1 2 3 4 5

D

C

B

A

But instead of letters and numbers, in java its numbers and numbers so the grid looks like this (for 3 x 3)

_0 1 2

0

1

2

so the first element of the first row would be expressed as (assuming the array was called an array)

array[0][0]

the second item in the last row would be

array[2][1]

Hence the expression whose value is that of the first element in the first row is array[0][0].

To learn more about arrays and matrices,

https://brainly.com/question/13107940


#SPJ4