Assume that an vector of int variables named salarySteps that contains exactly five elements has been declared. Write a single statement to assign the value 30000 to the first element of this vector.
LANGUAGE: C++
CHALLENGE:
Assume that an vector of int variables named salarySteps that contains exactly five elements has been declared. Write a single statement to assign the value 30000 to the first element of this vector.
SOLUTION:
salarySteps[0]=30000;