Skip to main content

C/C++ vector



void fnc() {
     vector nameV;

      nameV.push_back("ab");
      nameV.push_back("cd");


      int sz = nameV.size();
      cout<< " Size of Vector:" << sz << endl;

      for(int i=0;i
      {
          cout<<  nameV[i] << endl;
      }



}

Comments