logo

Crowdly

Browser

Add to Chrome

What is the output of this program? char s[] = "mississippi"; int cnt = 0; for(i...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What is the output of this program?

char s[] = "mississippi";

int cnt = 0;

for(int i = 0; s[i]; i++)

    if(s[i] == 's' && i % 2 == 0) cnt++;

printf("%d", cnt);

!
More questions like this

Want instant access to all verified answers on moodle.usthlearningsupport.vn?

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

Browser

Add to Chrome