Assume that an vector of integers named salarySteps that contains exactly five elements has been declared. Write a statement that assigns the value 160000 to the last element of the vector salarySteps.

Assume that an vector of integers named salarySteps that contains exactly five elements has been declared. Write a statement that assigns the value 160000 to the last element of the vector salarySteps.

LANGUAGE: C++

CHALLENGE:

Assume that an vector of integers named salarySteps that contains exactly five elements has been declared. Write a statement that assigns the value 160000 to the last element of the vector salarySteps.

SOLUTION:



salarySteps[4]=160000;

Add comment