Which of the following statements is true in secure C programming?

(a) You should avoid using printf to display a single string argu-ment.
(b) You should always use printf to display a single string argu-ment.
(c) You should always use puts to display a single string argument.
(d) None of the above.


(a) You should avoid using printf to display a single string argu-ment.

Computer Science & Information Technology

You might also like to view...

In the fragment below, what is the minimum size of result required for successful and valid concatenation of "double " and "trouble"?

``` strcpy(result, "double"); strcat(result, "trouble"); ``` a. 10 b. 13 c. 14 d. 15 e. none of the above

Computer Science & Information Technology

Which of the following is not a primary activity in BI process?

a. Data acquisition b. Publishing results c. Data sources d. Analysis

Computer Science & Information Technology

Which of the following is the purpose of an NTP server?

A. For hosting instant messaging applications B. For synchronizing clocks on network devices C. For file sharing and collaboration D. For hosting newsgroups

Computer Science & Information Technology

Case 9-1Sid is creating a Web site featuring a slide show of his trip to Italy and plans to use both an array and a function to start the slide show automatically.To initialize the image array, Sid uses the ____() function.

A. start B. startup C. begin D. initialize

Computer Science & Information Technology