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

The Homestead Act of 1862 gave free what to settlers?
Calculate the enthalpy change, ΔH, for the process in which 30.1 g of water is converted from liquid at 10.1 ∘C to vapor at 25.0 ∘C . For water, ΔHvap = 44.0 kJ
What is 1 1/2 times 5?
10+6÷3+2×8= 18-24÷6+3×5= 25-4×3+(7×2)= 12÷4+3×5= 19+2×3+16-4= 20+18÷3-2= (8-3)×3²-3= 5²×4-2×3+12= 2³÷4×4-2³= 15-15÷3×2²=
PLZ ANSWER #7!!!! Whoever answers best gets brainliest answer and 30 points!!!!
What is a analogy for the nuclear envelope.
How does Caesar's description of himself support or conflict with his past behaviors with other characters?
Stuck on this one question , please help
In a video game, when the player must clear an obstacle in order to enter a level, a mythologist would call this a. defeating the guardian. b. the heroic ques
Given ∆QRS≅∆TUV, QS=4v+3, and TV=7v-9, find the length of QS and TV.? a. 37 b. 4 c. 19 d. 20