String class in c++ stl

do string objects are automatically null terminated in c++ 11?
for eg:
string s=“hello”;
will s[5] be equal to ‘\0’?

No string objects are not NULL terminated.
This happens in character arrays only.

The doubt was reopened. Is your doubt resolved?

yes it’s resolved .thank you.

Ok please mark it as resolved now