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

Interrogative pronouns are used to?
Write a sentence with the word inference
Dr. kang studies the development of morality in children. in her latest study she followed and assessed 3- year-olds, 4-year-olds, and 5-year-olds for a period
What is the expanded notation for 2,909? Numbers may be used Once,More than once, or not at all. (2x What) + (9x what) + (9xwhat) Please fill the What’s with th
Apex how did the film birth of a nation contribute to racial violence?
Reasons for attrition from exercise programs can be classified as a. internal and controllable b. external and controllable c. internal and uncontrollable d. ex
HELP QUICK AND FAST WHAT THE ANSWER
Very easy please help
Which of the following is not a way in which rivers and lakes influence the United States? a. These bodies of water are all fresh water, which allows the United
D.10 Geometry math question no Guessing and Please show work