C++ Size of Vector

#include<iostream>
#include<vector>
using namespace std;
int main()
{
    vector <int> anik;

    anik.push_back(34);
    anik.push_back(44);
    anik.push_back(54);
    anik.push_back(64);
    anik.push_back(74);

    cout << "Size of anik :: " << anik.size() << endl;

    return 0;
}

Comments