#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<int> v = {4, 5, 6};
v.push_back(7);
cout << v[0] << endl;
cout << v[3] << endl;
cout << "The vector size is : " << v.size() << endl;
return 0;
}
Posted inC++