Complete the following vectors utilizing the C++ : 1. Assume v is a vector that
ID: 3626384 • Letter: C
Question
Complete the following vectors utilizing the C++ :1. Assume v is a vector that has been declared and initialized. Write an expression whose true if there are any values stored in v.
2.Given that an vector of int named a with 30 elements has been declared, assign 5 to its last element.
Please do not use a member function
3. 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.
Explanation / Answer
v.empty();
v[29] = 5;
a[0] = a[0]+10;