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

El banquero __________ nuestro dinero.
What muscle is primarily responsible for preventing foot drop?
What is the function of the semicolon in the sentence below? i have only mentioned a few grammatical errors ; many others are there?
How many tenths are in 4/5
Brain development supports overall child development in
what is the meaning of biology
Ou see: julie you hear: c'est le zéro un, vingt-trois, trente-huit, quarante-trois, cinquante-deux. you write: 01.23.38.43.5
If a 0.75 mole sample of helium gas occupies a volume of 1.5 l, what volume will a 1.2 mole sample of gas occupy at the same temperature and pressure?
Pericarditis commonly results in the increased production of pericardial fluid. the fluid collects in the pericardial cavity which restricts the movement of the
_______________________ happens when the economy is producing at its potential and unemployment is at the natural rate of unemployment. the foreign price effect