Assume that an vector named a, containing exactly five integers has been declared and initialized. Write a single statement that adds ten to the value stored in the first element of the vector.

Assume that an vector named a, containing exactly five integers has been declared and initialized. Write a single statement that adds ten to the value stored in the first element of the vector.

LANGUAGE: C++

CHALLENGE:

Assume that an vector named a, containing exactly five integers has been declared and initialized. Write a single statement that adds ten to the value stored in the first element of the vector.

SOLUTION:



a[0]+=10;

Add comment