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...

Choose the correct pronoun in the following sentence. The committee has completed __________ work.?

A. ?its B. ?their

Computer Science & Information Technology

Which type of server can function as a firewall?

Mail server Proxy server Print server FTP server

Computer Science & Information Technology

Complete the table, showing the unpaid balance at the end of each month. Use the unpaid balance method to calculate the interest. Assume a 21% annual interest rate. Round your answers to the nearest cent. MonthUnpaid Balance at the Beginning of the MonthFinance ChargePurchasesPurchasesPaymentsUnpaid Balance at the End of the MonthJune$323.34$________$ 43.40$ 31.30$75.00$________July$________$________$ 159.85-$230.00$________August$________$________$ 132.98$ 122.85$100.00$________

What will be an ideal response?

Computer Science & Information Technology

When creating graphics for conversion to video, do not place any critical information such as text in the outside 15 percent of the image. Instead, keep it within the ____________________ (two words) area.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology