Which of the following correctly copies the contents of string2 into string1? Assume that string2 is equal to "goodbye"; and string1 is equal to "good morning"?
a. strcpy(string1, string2);.
b. strcpy(string1, string2, 6);.
c. Strncpy(string1, string2, 5);.
d. strncpy(string1, string2, 6);.
a. strcpy(string1, string2);.
Computer Science & Information Technology
You might also like to view...
The original Internet was called:
a.ARPANET b.CSNET c.NSFNET d.Sputnik
Computer Science & Information Technology
Which of the following statements creates a tuple containing four items?
A. t = [1: 2: 3: 4] B. t = {1, 2, 3, 4} C. t = <1; 2; 3; 4> D. t = (1, 2, 3, 4)
Computer Science & Information Technology