mayabrunsonjb3820 mayabrunsonjb3820
  • 02-09-2019
  • Computers and Technology
contestada

Given the statement: int list[25]; The index can go from 0 to 25 inclusive withoutgoing beyond the end of the array.true or false?

Respuesta :

SerenaBochenek SerenaBochenek
  • 05-09-2019

Answer:

False.

Explanation:

When we create an array of size n, then it's index will starts from 0 to n-1. Array index starts with 0 because the first element of the array holds the memory location that refers to 0 element away.Similarly 2nd element of array is 1 distance away from that location. That is why index starts with 0 and goes to n-1 if the size  is n.

In the question question, int list[25] is given. So the index will be from 0

to 25-1 only.If index will goes to 25 then it will go beyond the array.

Answer Link

Otras preguntas

Why does odysseus provoke antinous to behave badly in part 2?
Many philosophers wrote down their philosophies about the government and___________? . A number of philosophers published books on the subject. They applied the
what musical device signifies rhythmic flexibility
As you continue to cross the offspring resulting from the previous question with albinos, what will occur in the growing population?
3. All the following steps need to be followed when naming alkanes, except A. locating the longest carbon chain. B. using prefixes to designate
what happened to the ancient civilizations in Mexico and Central America when the Conquistadors arrived
Why did so many people migrate west from the Dust Bowl
SOMEONE PLEASE ANSWER ASAP!! 55 POINTS!!
How much does a human brain weigh?
Autotrophs take solar energy and transform it into a sugar known as what