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

How do earth's spheres interact to cause weather/climate?
Geologists use a(n) ______ to measure the tilting of the ground along a fault
Name the solid figure that has 3 rectangular faces and 2 triangular faces
Jim crow laws passed in the South during the late 1800's were designed to (1) support civil rights for African Americans (2) create a system of legal segregatio
What would happen if your hypothalamus didn't work properly
the greatest diversity of plants and animals is found in this biome.
What is the standard form of the number in the calculators display? 2.3e-9 A: 0.00000000023 B: 0.0000000023 C: 2,300,000,000 D: 23,000,000,000
Where was the site of Lincoln's assassination?
Famous Greek philosophers include all the following except A.)Thucydides B.)Socrates C.)Aristotle D.)Plato
Why doesn't mr.wilson's husband object to his wife going to New York?