Dim i as Long, arr(5) As Long
for i = 1 to 6
arr(i-1) = i-1
next
console.writeLine(arr(LBound(arr)+5) + arr(UBound(arr)-2))
I understand the output is 8 but could someone explain why it is 8, Lbound and UBound, this type of question comes up in my exam, and i am having some issue with getting my head around this.
Much appreciated