You can replace lines 5 and 6 in the following function with ____.1 /* copy string2 to string1 */2 void strcopy(char string1[], char string2[])3 {4   int i = 0;5   while (string1[i] = string2[i])6     i++;7 }

A. while (*string1 = *string2) ;
B. while (*string1 = string2) ;
C. while (*string1++ = *string2++) ;
D. while (*++string1 = *++string2) ;


Answer: C

Computer Science & Information Technology

You might also like to view...

If unexpected data is processed in an I/O operation:

a. An exception will be thrown. b. An error message will automatically be displayed. c. The program will terminate execution. d. Various error bits will be set.

Computer Science & Information Technology

Which of the following is designed to get an organization back to full functionality as soon as possible after a disaster?

A) Business continuity plan B) Disaster recovery plan C) Backup plan D) Fault tolerance plan

Computer Science & Information Technology

Explain, in detail, at least five things you can do with Dreamweaver. Be sure to define all key terms that you introduce in your explanations.

What will be an ideal response?

Computer Science & Information Technology

You can use the rulers to ____.

A. set tab stops B. change page margins C. format characters D. adjust column widths

Computer Science & Information Technology