in the above program the length of the string is 5 but why iam not getting error when i try to access the element s[7]
Is the size of the string class object fixed?
@shiva57reddy Even after initializing s[7] with ‘a’ check the output of s.size() which is still fixed to 5.