logo

Crowdly

What is the output of the following code fragment? char s[] = "C/C++ is fun!"...

✅ 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';

0%
100%
0%
0%
More questions like this

Want instant access to all verified answers on moodle2425.up.pt?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!