Iamsopretty8969 Iamsopretty8969
  • 18-03-2020
  • Mathematics
contestada

Int[][] myvals = {{2, 4, 6, 8}, {20, 40, 60, 80} };​using the above two-dimensional array, what is the value of myvals[1][2]?

Respuesta :

joaobezerra joaobezerra
  • 18-03-2020

Answer:

myvals[1][2] = 4

Step-by-step explanation:

Int[][] myvals = {{2, 4, 6, 8}, {20, 40, 60, 80} }

This command means that we have the following matrix:

[tex]\left[\begin{array}{cccc}2&4&6&8\\20&40&60&80\end{array}\right][/tex]

using the above two-dimensional array, what is the value of myvals[1][2]?

This is the element at first row, column 2.

First row is {2, 4, 6, 8}

First row, column 2 is 4. So

myvals[1][2] = 4

Answer Link

Otras preguntas

Most islands within Oceania have what type of climate? A. tundra b.tropical humid c.humid continental d.deser
Are the angles with the given measures complementary, supplementary, or neither? m∠J = 63° and m∠K = 27°
How do you say I love my family?
What two particles account for almost all of the mass of an atom?
A statement of a viewpoint supporting one side of an argument is called a ________?
Joel made muffins, he gave 1/4 to his neighbor and 3/8 to his school how may muffins were left
What is 3 and 1 tenth as a whole? :-\
In the sentences below, which of the bolded adverbs is used to describe an adjective? A. Jack grumbled loudly about his history grade. B. Troy was too cold to
The main events in The Odyssey begin in medias res. What does this mean? A. At the beginning B. At the end of the story C. In a flashback D. In the middle of th
carl has 200 songs on his mp3 player. of these songs, 24 are country songs what percent of carls songs are countrey