AlyssaHuling5506 AlyssaHuling5506
  • 04-07-2019
  • Computers and Technology
contestada

What will the following code print out: int numbers [] = {99, 87, . 66, 55, 101}; for (int i = 1; i < 4; i++) cout << numbers [i] << end1;a) 99 87 66 55 101 b) 87 66 55 101 c) 87 66 55 d) Nothing.

Respuesta :

PhantomWisdom PhantomWisdom
  • 14-07-2019

Answer:

87 66 55

Explanation:

Array is used o store the multiple values with same data type.

the array show a decimal value .66, i assume this is enter by mistake because option has no decimal value.

The index of the array is start from zero, it means the first element store in the array at position zero.

In the for loop the variable 'i' start from 1 not zero and it goes to i<4 means i=3.

So, it access the element from 2 to 4 because the index is position of element less than 1.

Therefore, 87 66 55 print.

Answer Link

Otras preguntas

If cot A = 1.96000 and the acute angle A has to be determined, which one of the following expressions will give the seconds of the angle?
Is molar mass more accurate at low or high temperatures?
Someone please help me?
BRAINLIESTTTTT ASAP!!! Which answer best describes a reason why industries flourished in New England? The people in New England had more work experience. New
why were anti-federalists opposed to the constitution?
Even though it was not mention directly in the constitution, which of the follow was establishing under Washington A. A presidential cabinet B. Authority to vet
How do you use the exchange rate to calculate the amount of ARS that is equal to 350 AUD
help me please if you do you will be marked as brainliest!!
please help I will reward brainly
PLEASE HELP ASAP! This is an emergency!