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

Which statement is true about the graphs shown?
0.43 rounded up or down
How often do you need to add freon to a central air conditioning unit.
Divide and write the fraction or mixed number in its simplest form 1/4 divide 3/8 =
Is dying for one's country the best way to show patriotism?DETAILS!!!
€)) Which expression is equivalent to 4x + 4x + 1? ? 5x + 4 2x + 9 4x + 5 8x + 1 Submit​
Select all that apply. (MORE THAN 1 ANSWER!!) Gestures are: ____. a) often used to intensify the meaning of words. b) distracting. c) universal. d) nervous
Find the rule. Solve for n. Х Y 12 7 15 10 20 15 n 17 Rule: ? PLS HELPPP ASAP!!!
Which of the following statements concerning connective tissue is FALSE? A.)Proper, fluid, supporting, and glandular are the four major types of connective tiss
Someone help? Where do i drag which?