Which of the following printf statements prints data in columns?

A. printf (%d %d %.3f, a, b, c);
B. printf (%d, %d, %.3f, a, b, c);
C. printf (%2d %5d %8.3f, a, b, c);
D. printf (%d, %d, %.6f, c, b, a);


Answer: C

Computer Science & Information Technology

You might also like to view...

Number values are aligned at the ________ cell edge

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

Computer Science & Information Technology

Ruby was created as a joint project between Microsoft and Apple.

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

Computer Science & Information Technology

Drag-and-drop editing can be used to move text, but not to copy text.

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

Computer Science & Information Technology

GPRS, ATM, FDDI, and SLIP are examples of:

a. Data link layer protocols b. Physical layer protocols c. Network layer protocols d. Encryption protocols

Computer Science & Information Technology