In your sample let 'p' point to the address of the first char of string 'l':
Code:
string l="Pranav"; char *p; p=&l[0];
As you can see it is possible, however, you have to be carful with this and in most cases you want to let 'p' be const, so you cannot break the inner string structure:
Code:
string l="Pranav"; const char *p; p=l.c_str();