Write an if-else statement using a C-string function that reports whether two C-strings variables contain the same C-string.

What will be an ideal response?


```
Use strcmp.
if( !strcmp(firstCstring, secondCstring) )
cout << “the C-strings are the same” << endl;
else
cout << “the C-strings are different” << endl;
```

Computer Science & Information Technology

You might also like to view...

If you are running Windows, you can identify your computer's CPU and its specifications using ____.

A. the My Computer window B. Internet Explorer C. Windows Explorer D. the Windows Control Panel

Computer Science & Information Technology

A formula containing the entry =J$7 is copied to a cell three columns to the right and four rows down. How will the entry display in its new location?

What will be an ideal response?

Computer Science & Information Technology

The visible spectrum is composed of how many distinct colors?

What will be an ideal response?

Computer Science & Information Technology

What is the approximate value of log 1000000?

a. 10 b. 20 c. 50 d. 1000 e. none of the above

Computer Science & Information Technology