What did you mean by underlying string array? I don’t understand that part and therefore I don’t get what c.str() actually does. I tried a lot looking on the internet about c.str() but I’m not able to understand what it acutally does.
Many places it said it returns pointer but how? How does it return pointer of a string? Both are different data types. Initially it’s a string data type how could it return pointer of a string?
And why does simply doing char *c=str gives error?