Question: What is the output after the code below is executed? #include #include int main() { char abc[100] > =Good Luck in Your Programming Final: int
What is the output after the code below is executed? #include #include int main() { char abc[100] > ="Good Luck in Your Programming Final": int i, w: i = w = 0: while(abc[i] != '\0'){ if(abc[i] == ' '){ if(abc[i+1] != ' ' && abc[i+1] != '\0') w++: } else printf("%c", abc[i-1]): i ++: } printf(" w = %d ", w): return 0: }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
