naishaboyd8432 naishaboyd8432
  • 02-03-2020
  • Mathematics
contestada

When an ages array is correctly initialized using the values {20, 30, 40, 50}, then the value of ages[1] is _______________________. 20 30 undefined 0

Respuesta :

ibnahmadbello
ibnahmadbello ibnahmadbello
  • 03-03-2020

Answer:

ages[1] is 30

Step-by-step explanation:

The index of an array start counting from zero. So, based on the given array,

20 = index 0

30 = index 1

40 = index 2

50 = index 3

Therefore, ages[1] = 30

Answer Link

Otras preguntas

Explain how you could use the Distributive Property and metal math to find 5x198
How does the energy of an electron change when the electron moves closer to the nucleus? a. It decreases. c. It stays the same. b. It increases. d. It doubles.
The largest European city which is not a capital of a country
the fertile crescent lacked resources such as stone , wood , and metal what hardships might these shortages have caused for the people who lived there?
Reread lines 1-2 aloud. Notice the use of alliteration with the repetition of the letter p and d. What mood or feeling does the alliteration convey?
What was the significance of the Bantu?
Give at least three examples of cooperative federalism at work
If a polygon has 5 sides is it a regular pentagon
there are 8 students who have 3/4 of a cake they want to share. how much of the cake will each student get if they split it evenly?
ninety percent of a school's students or 540 students attended a school assembly.how Manny students are there at the school?