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 business impact analysis (BIA) is the first major component of the CP process.

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

Computer Science & Information Technology

A parameter query prompts you for criteria before running the query

Indicate whether the statement is true or false

Computer Science & Information Technology

The ________ portion of a payment is the cost of the loan

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

Computer Science & Information Technology

Video or sound that downloads to a computer continuously to be watched or listened to in real time is called what?

A. wireless content B. cloud computing C. streaming media D. satellite data

Computer Science & Information Technology