Which of the following input formatting statements would read the following data?  23 z 4.1

A. scanf("%d%c%f", i, c, f);
B. scanf("%i%c%f", i, c, f);
C. scanf("%d%c%f", &i, &c, &f);
D. scanf("%d %c%f", &i, &c, &f);
E. scanf("%d %c %x", &i, &c, &f);


Answer: D

Computer Science & Information Technology

You might also like to view...

Which is a correct static method call of Math class method sqrt?

a. sqrt(900); b. math.sqrt(900); c. Math.sqrt(900); d. Math math = new Math(); math.sqrt(900);

Computer Science & Information Technology

The ____ holds the workspace elements together.

a. Live Workspace b. Application frame c. contact sheet d. smart filter

Computer Science & Information Technology

A data series can be removed from a line chart at any time

Indicate whether the statement is true or false

Computer Science & Information Technology

All the following are reasons to collaborate online EXCEPT for:

A) a team of IT professionals living in different countries collaborating on a big project. B) several friends working on their tax returns. C) a bunch of college students working on a group project. D) small business owners presenting their products or services to potential clients.

Computer Science & Information Technology