An array of Integers named a has been declared with 12 elements. The integer variable k holds a value between 0 and 6. Assign 9 to the element just after a[k].

An array of Integers named a has been declared with 12 elements.  The integer variable k holds a value between 0 and 6.  Assign 9 to the element just after a[k].

LANGUAGE: Visual Basic

CHALLENGE:

An array of Integers named a has been declared with 12 elements.
The integer variable k holds a value between 0 and 6.
Assign 9 to the element just after a[k].

SOLUTION:


a(k+1) = 9

Add comment