C++ Pointer to String Array

string var friends = {"Amy","John","Joyce","Deszrene","Samson"};string *ptr;ptr = &friends ; // pointer to the 3rd position in arraystd::cout << "Value of friends position 3 = " << *ptr << std::endl; C++ string pointers to specific positions in the string array Other good articles on c++ pointers to string arrays are over here. Feel Free to Copy the code below and test it...
Read More
Top