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 digit is in the thousandths place 1.375126
The analogy for allow is permit,What is the ANALOGY for FIND ?
How could these instructions be improved for better understanding of the game?
Write a numerical or variable expression for each quantity! 1) two dozen eggs (numerical) 2) d dozen eggs (variable) 3) the value in cents of 7 nickels (numeri
2 (b+8)-9=5 I got x = -1 is that correct? 15= 8x -5+2x I got x = 2 is that correct?
how does earths orbit and rotation influence the length of the year and the change from day to night ?
T+10>14 I'm really stuck
53,806 in expanded form using exponents
What are all the prime and composite numbers from 1-30
What is the value of 4a3 – 2b2 + 5 when a = 3 and b = −2? Which is equal to 33 • 35?   A. 3^−2