Given that an array named a has been declared, assign -1 to the last element in a.
LANGUAGE: Visual Basic
CHALLENGE:
Given that an array named a has been declared, assign -1 to the last element in a.
SOLUTION:
a(a.length - 1) = -1
Given that an array named a has been declared, assign -1 to the last element in a.
a(a.length - 1) = -1