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

Look at the screenshot
what is the result of ocean acidification
Help me complete this french question please
How do function models help us to understand the world?
Read the caption. Explain the message of this political cartoon.
Select the correct answer. Based on the law of conservation of energy, which statement is correct? O A. Energy is always being added to all parts of the Univers
Explain why human cells undergo mitosis.
which organelle produces the cells energy
Bob bought n packs of pencils. Each pack has 15 pencils. Write an equation to represent the total number of pencils that Bob bought.
8. Anita recorded the amount of rainfall in her area each day for 14 days. What was the total amount of rainfall in the 14 days? A 40 cm B 36 cm C 13.5 cm D 12.