estradaangelic80
estradaangelic80 estradaangelic80
  • 12-11-2020
  • Computers and Technology
contestada

What is the difference between myList.length and myList.length - 1? When would you use myList.length? When would you use myList.length - 1?

Respuesta :

b1nary
b1nary b1nary
  • 12-11-2020

Answer:

The difference between myList.Length and myList.length - 1 is that with the second variable, you are subtracting 1 from the total (assuming it is a integer)

Explanation:

Assuming the variable myList.Length is a integer, like for example, 4, it would be equal to 4, while myList.Length - 1 would be 3.

Answer Link

Otras preguntas

which is referred to as the "salt-retaining hormone" because it plays the primary role in adjusting sodium excretion? A. ANP B. ADH C. Angiotensin D. Aldosteron
What is the value of the expression -5(3 4)? (Distribute)
Finding Angles with Justification
Sales at a deli decreased 15.5% this month compared to last month if sales this month were 85,380 what were the sales last month
What does it mean that this is an incipient function of Root effect Hbs? evolutionary significance
Which of the following right triangles have an area of 48 square inches? Select three that apply. A. A right triangle with base 48 inches and height 2 inches.
simplify [tex]\sqrt{-90
what woman flight to create legislation to help the people
Meaning of Learnership
Juan pushed a shopping cart 8.4meters at a steady speed. It took him 7.0seconds to push the cart that distance. During that time, Juan's daughter jogged past hi