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

A woman bought some large frames for ​$17 each and some small frames for ​$6 each at a closeout sale. If she bought 18 frames for ​$141​, find how many of each
Change The Following To Imperative Sentence. man is the maker of his own fortune (imperative)
I need help with math Please
A teacher is selecting students to be team captains for a class game. Each student in the class has their name on a Popsicle stick. The teacher selects three Po
What is ADO.net????????​
The simple interest on a sum of money in 2 years is Rs 36 less than the compound interest compounded annually. If the rate of interest is 12 % p.a., find the su
Look at the image for the question.
Which calculation and answer show how to convert 9/16 to a decimal?
Please help for brainliest!!​
I really need help with this one