Line 5 in the function below can be replaced with ____. 1 void strcopy (char string1[], char string2[]) 2 { 3   int i = 0; 4 5   while (string2[i] != '\0') 6   { 7     string1[i] = string2[i]; 8     i++; 9   }10   string1[i] = '\0';11 }

A. while (string2[i])
B. while (!string2[i])
C. while (string2[i] < '\0')
D. while (string2[i] != '\n')


Answer: A

Computer Science & Information Technology

You might also like to view...

The ________ is a temporary storage location in your computer's memory

A) notebook B) clipboard C) work area D) Side bar

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1. Output reports may be viewed on the monitor or be printed on a printer. 2. Normalizing tables enables to developer to efficiently divide data into related tables. 3. An Entity Relation Model is a model of the data that provides the designer with three main semantic concepts: entities, relationships, and attributes. 4. The schema of your database shows the relationships among the tables.

Computer Science & Information Technology

You can rely on a robots.txt file to keep a document on your web server hidden.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which of the following object methods returns a text string representation ofobjectusinglocal standards?

A. obj.LocaleString() B. object.toLocale() C. object.toLocaleString() D. obj.toLocaleString()

Computer Science & Information Technology