Check an Array String character value without extra variable

  arrayofstring, arrays, c++, string

suppose I’ve this code:

string str[2] = {"devil", "chandra"};
// check if str[0] has properly devil or not without extra variable?

Now I want to check str[ 0 ]’s all character which is ‘d’,’e’,’v’,’i’,’l’ without extra variable.

Even I don’t know is it a valid question or not!

Source: Windows Questions C++

LEAVE A COMMENT