Size vs capacity in a vector
Ever wondered what is the difference between the methods size and capacity in vector. Wonder no more, I've got you covered
#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<int> box(4,0); //L1
cout<<"Size: "<<b...
cppnuggets.hashnode.dev2 min read