
please wait
|
|
string letters[26]
has 26 elements. The first element is letters[0]
and the last is letters[25]
.letters[26]
is accessed - this is the 27th element. This element is outside the bounds of the array. Whatever data is at that location in memory, it's not likely to be an object of type std::string
, and is giving the unpredictable results.