How can we pass vector variables to a function? I have a vector of char* and a function which will take a char * as an argume
vector
char*
char *
You can also access the vector elements using its index:
void f(char* s) { // do something with s } std::vector char_vect; size_t len = char_vect.size(); for (size_t i=0; i