Question: Explain what this program does. Also, explain how the mystery2() function works # include int mystery 2(const char *s); int main (void) {char string[80];//create char
Explain what this program does. Also, explain how the mystery2() function works # include int mystery 2(const char *s); int main (void) {char string[80];//create char array printf (Enter a string:") scanf ("%79s", string); printf ("%d ", mystery2(string)); return 0;//indicate successful termination.}//end main//what does this function do? int mystery 2(const char *s) int x;//counter//loop through string for (x = 0; *s! = *\0'; s++) {}//end for return x;//end function mystery
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
