What happens when you attempt to compile and run the following code?#include <vector>using namespace std;int main (){std::vector<int>v1;v1.push_back(10);return 0;}
A. compilation fails due to error in line 2
B. compilation fails due to error in line 5
C. exception is thrown during run time
D. code compiles and executes successfully
What happens when you attempt to compile and run the following code?#include <vector>using namespace std;int main (){std
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What happens when you attempt to compile and run the following code?#include <vector>using namespace std;int main (){std
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!