Question: vector num; num.push_back(1); num.push_back(2); num.push_back(3); num.push_back(4); Select 2 expressions equivalent to 4 in this code: a. num.last() b. num[3] c. num.at(4) d. num.back()
vector
num.push_back(1);
num.push_back(2);
num.push_back(3);
num.push_back(4);
Select 2 expressions equivalent to 4 in this code:
| a. | num.last() | |
| b. | num[3] | |
| c. | num.at(4) | |
| d. | num.back() |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
