Computer Science, asked by kondeaniket193, 5 months ago

What is the initial value of index for a
reverse for loop?
O A.UPPER bound
O B.Lower bound
O 0.1
O D.Upper bound-Lower bound/2​

Answers

Answered by SaurabhJacob
2

A. Upper Bound is the correct option.

Since the loop is going to execute in reverse order. So,

  • The loop should start from the farthest value.
  • The loop should end at the nearest value.
  • It can only be done when the starting of the loop is the upper bound.
  • The most important logic is the loop should decrease its value to reach its end at the most prior value of the loop.
Answered by shilpa85475
0

Lower bound

  • The key data index of the same members is called the declining liability, at the same time as the last data index is called its maximum liability.
  • By default, the same listed members start with zero.
  • Vaccination requires covering the width of the elements of the inner brackets. similar members are defined as an organized set of similar information gadgets.
  • All same member information gadgets are stored in consecutive memory locations in RAM.
  • The array factors are the same type of information and everything can be accessed using the same name.
Similar questions