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

Select the two factors that characterized the Jacksonian Era. SELECT ALL THAT APPLY A. “King mob” rule B. Every citizen was important C. Everyone should partic
What did Rosalinda franklin contribute to the effort to identify the structure of dna
Identify the area of the figure rounded to the nearest tenth. PLEASE HELP!!
In the pantry, the ratio of apples to bananas is 2:7. There are 21 bananas. How many apples are there?
Help Please Preterite and imperfect forms Spanish
What was a major difference between the lives of patricians & plebs? A) Patricians were majority/Plebs minority B) Patricians lived in city/Plebs in the
jai alai came to miami from
Which of the following statements about private security officers is correct? A. Most private security officers will carry weapons while on the job.
match the characters in Jane Austen's Pride and Prejudice to the traits they display. ​
What are the dimensions of the product?