Sorry if this is a stupid question.
Assume I have a code like this.
char *temp = "poiuytrewq"; std::cout<<*temp<<std::endl; //should print p function(temp); std::cout<<*temp<<std::endl; //should print i
Basically my function() in the above snippet increments the pointer twice so that temp point to 'i' now. I need to know the prototype of function() which can accept a pointer to a character array and change where it points to (something like pass by reference).