Given that an vector of int named a with 30 elements has been declared, assign 5 to its last element.

.
.
Click on the title for the solution
.
.

This is the answer:

:

a[29]=5;

Comments