Which of the following input statements does not correctly read a string?

A. scanf("%s", str);
B. scanf("%.30s", str);
C. scanf("%30s", str);
D. scanf("%*s", str);
E. scanf("%*30", str);

Answer: B

Computer Science & Information Technology

You might also like to view...

The ________ command allows the user to find, and then substitute, word or phrases within the document

A) Scan B) Search C) Substitute D) Replace

Computer Science & Information Technology

Which of the following is true about the System Restore feature?

A. System files are restored to an earlier state. B. Problem files are separated into their own folders. C. System folders are renamed. D. A report is generated with the original system settings.

Computer Science & Information Technology