✅ 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[] = "C/C++ is fun!";
int i = 0;
while (s[i] != '\0' && s[i] != ' ') i++;
s[i] = '\0';
std::cout << i << ' ' << s << '\n';
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!