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

how do you write 4540 million in standard form?
What are the functions of receptors in our body? Think of a situation where receptors do not work properly. What problems are likely to arise?
you have a standard deck of 52 cards. you pick one card and then, with out putting the first card back, you pick a second card. what is the probability that bot
What is the least common denominator for 5/6 and 3/8. 3/4 and 6/7
Simplify the expressions: cot 0 sec 0 A. Sin0 B. Csc0 C. Cos0 D. Cos* 0
what's another word for over thinking?
you have a standard deck of 52 cards. you pick one card and then, with out putting the first card back, you pick a second card. what is the probability that bot
How do you?...Multiply out and simplify 10(2x-1)-20x?
how were north american colonies all similar in the 1700s?
how were north american colonies all similar in the 1700s?