Question 4 Result Execute Instruction Vec 2 Question 5 Result Execute Instruction Vecfront Q43843767
![int num[] = { 1,2,3,4,5,6,7,8 }; vector<int> vec(num, num + 8); vector<int>::iterator iter; %3D vec.begin(); iter %3D](https://media.cheggcdn.com/media/ff9/ff9c0f56-14a6-4ba3-9608-73c0b6daf7f0/image.png)
Question #4) What is the result of execute theinstruction vec[2] ; ?
Question #5) What is the result of execute theinstruction vec.front() ; ?
In C++ Lenguage Please.
int num[] = { 1,2,3,4,5,6,7,8 }; vector<int> vec(num, num + 8); vector<int>::iterator iter; %3D vec.begin(); iter %3D Show transcribed image text int num[] = { 1,2,3,4,5,6,7,8 }; vector vec(num, num + 8); vector::iterator iter; %3D vec.begin(); iter %3D
Expert Answer
Answer to Question #4) What is the result of execute the instruction vec[2] ; ? Question #5) What is the result of execute the in…
OR