Given that a vector of int named a has been declared, and that the integer variable n contains the number of elements of the vector a, assign -1 to the last element in a.

LANGUAGE:  C++

CHALLENGE:

Given that a vector of int named a has been declared, and that the integer variable n contains the number of elements of the vector a, assign -1 to the last element in a.

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,