How can we assign
char*
to
char**
??
For example:
char ** strArray = (char **)malloc(N*sizeof(char));
char *str ;
std::string st ("Hi there how are you??");
str = new char[st.size()+1];
strcpy(str, st.c_str());
strArray[1] = ??? <-----str (copy str contents to strArray)
Regards,
Abhishek Dey