✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What is the output of the following code fragment?
char s[] = "2LEIC 022";
int i = 0;
do { i++; } while (s[i] != '\0' && s[i] != '2');
s[i] = '\0';
std::cout << i << " \"" << s << "\"\n";