Line ____ in the following section of code checks for the end-of-string character. 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. 3
B. 5
C. 7
D. 10


Answer: B

Computer Science & Information Technology

You might also like to view...

What is a subtractive color model? How does it differ from additive color models?

What will be an ideal response?

Computer Science & Information Technology

[CD] Create a DTD for Fig. 5.6 (letter.xml ).

What will be an ideal response?

Computer Science & Information Technology

The default sequence for bulleted lists is for items:?

A. ?to appear "By Paragraph." B. ?to appear "Letter by Letter." C. ?to "Float In all at once." D. ?to "Fade In one line at a time."

Computer Science & Information Technology

Briefly describe the beginnings of TCP/IP (i.e., what research work led to the development of TCP/IP)?

What will be an ideal response?

Computer Science & Information Technology