The function that accepts pointers to two C-strings and an integer argument that indicates how many characters to copy from the second string to the first is

a. strcpy
b. strncpy
c. copystring
d. strintcpy
e. None of these


b. strncpy

Computer Science & Information Technology

You might also like to view...

Which statement creates a random value from the sequence 2, 5, 8, 11 and 14 . Suppose randomNumbers is a SecureRandom object.

a. 2 + 5 * randomNumbers.nextInt(3); b. 3 + 2 * randomNumbers.nextInt(5); c. 5 + 3 * randomNumbers.nextInt(2); d. 2 + 3 * randomNumbers.nextInt(5);

Computer Science & Information Technology

The basic generic functional interface ________ in package java.util.function contains method accept that takes a T argument and returns void. Performs a task with its T argument, such as outputting the object, invoking a method of the object, etc.

a. Consumer b. Function c. Supplier d. BinaryOperator

Computer Science & Information Technology

The reading and techniques used by both ethical and malicious hackers are identical.

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

Computer Science & Information Technology

Lena, a professor, creates a bar graph displaying the performance of her students. She needs to choose a bar graph template with chart elements appropriately placed to suit her requirement. In this scenario, which of the following options should Lena use??

A. ?Chart Styles B. ?Quick Layout C. ?Sparklines D. ?Chart Elements

Computer Science & Information Technology