The function ____ appends str2 to the end of str1.

A. strcpy(str1, str2)
B. strcmp(str1, str2)
C. strncpy(str1, str2,n)
D. strcat(str1, str2)

Answer: D

Computer Science & Information Technology

You might also like to view...

Any user intending to purchase something over the Internet should check and make sure that the website is using _____.

A) TCP/IP B) FTP C) packet-switching. D) HTTP.

Computer Science & Information Technology

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

1. When the break statement is encountered in a loop, all the statements in the body of the loop that appear after it are ignored, and the loop prepares for the next iteration. 2. When the continue statement is encountered in a loop, all the statements in the body of the loop that appear after it are ignored, and the loop prepares for the next iteration. 3. A file must always be opened before using it and closed when the program is finished using it. 4. In a for loop, the control variable is always incremented.

Computer Science & Information Technology