The statement ____ displays the message Have a Happy Day, right-justified, in a field of 25 characters.

A. printf("%s25","Have a Happy Day");
B. printf("%s-25","Have a Happy Day");
C. printf("%25s","Have a Happy Day");
D. printf("%-25s","Have a Happy Day");


Answer: C

Computer Science & Information Technology

You might also like to view...

A(n) ________ function performs a calculation on an entire column and returns a single result

A) abridged B) compound C) aggregate D) summary

Computer Science & Information Technology

Explain the "browser wars," W3C, and why it is important to create standards-compliant code when creating a Web site.

What will be an ideal response?

Computer Science & Information Technology

____________________ punctuation style includes a colon after the salutation and a comma after the complimentary closing.

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

Computer Science & Information Technology

An atomic variable is also referred to as a scalar variable.

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

Computer Science & Information Technology