Given that an array named a whose elements are of type Integer has been declared, assign the value -1 to the last element in a.

LANGUAGE: Visual Basic

CHALLENGE:

Given that an array named a whose elements are of type Integer has been declared, assign the value -1 to the last element in a.

SOLUTION:

a(a.length - 1) = -1