Assuming myString is a 20-element char array, which of the following statements might result in buffer overflow?

a) scanf("%19s", myString);
b) scanf_s("%s", myString, 20);
c) scanf_s("%19s", myString, 20);
d) scanf("%s", myString);


d) scanf("%s", myString);

Computer Science & Information Technology

You might also like to view...

OpenOffice Writer documents use either the .doc or .docx extensions

Indicate whether the statement is true or false

Computer Science & Information Technology

To add a value to the end of an ArrayList, call the ______ method.

a) Add b) AddToEnd c) AddAt d) InsertAt

Computer Science & Information Technology

The first time you start Outlook on a home computer, the____ feature starts automatically to help you provide information that Outlook needs to send and receive e-mail messages.

A. Auto Account Setup B. Internet Service Provider C. Personal Folders File D. Information Wizard

Computer Science & Information Technology

Quick Storage _____________ can move the virtual disks of a running machine regardless of the storage type.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology