What does this program do?
// What does this program do?
#include
using namespace std;
int mystery2( const char * ); // prototype
int main()
{
char string1[ 80 ];
cout << "Enter a string: ";
cin >> string1;
cout << mystery2( string1 ) << endl;
} // end main
// What does this function do?
int mystery2( const char *s )
{
int x;
for ( x = 0; *s != '\0'; s++ )
++x;
return x;
} // end function mystery2
Enter a string: length
6
You might also like to view...
BASIC, Java, Python, and C are examples of ____ languages because they make the programming process easier by replacing cryptic assembly commands with understandable commands.
A. low-level B. high-level C. compiler D. interpreter
Match each of the following keyboard shortcuts or keystrokes to its task:
I. F5 II. Alt F5 III. Tab IV. Esc V. Ctrl + E A. displays in Presenter View B. displays a presentation from the beginning C. centers text in a placeholder D. ends a slide show E. indents to the next bullet level
To create a public synonym, the user requires this privilege:
A. CREATE PUBLIC SYNONYM B. CREATE SYNONYM C. GRANT SYNONYM D. GRANT PUBLIC SYNONYM
A user reports that the mouse is not working properly. The technician notices on the user's workstation that the mouse cursor spins for several minutes before the technician can use the mouse. Which of the following is the cause of the issue?
A. Failed Operating System B. Faulty mouse C. Faulty CPU D. Not enough memory