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

1. The C-string library functions use the null terminator to decide when to stop processing.

2. The C-string library functions are safe and require no special care.


1. True
2. False
Explanation: The C-string library functions that copy from one C-string variable to another, such as strcpy, read from the input variable up to the null terminator. All goes well if there is sufficient space in the destination C-string. If there is not enough room in the destination, the strcpy stomps through memory until it reaches the null terminator in the input C-string or tries to write to protected memory when the program terminates.

Computer Science & Information Technology

You might also like to view...

Every paragraph in a document has a style associated with it

Indicate whether the statement is true or false

Computer Science & Information Technology

In data warehousing, at which point is it important that data copies are deleted after the data is transferred?

A. Moving the data from the staging area to the warehouse B. Extracting the data from its source C. Moving the data from the warehouse to the data mart D. Moving data from the source to the staging area

Computer Science & Information Technology

What is a base case?

What will be an ideal response?

Computer Science & Information Technology

________ is the process of evaluating input from a user to determine whether or not it is valid

Fill in the blank(s) with correct word

Computer Science & Information Technology