Practice mode C Language

Which format specifier is used with printf to print an int value in decimal form?

Correct answer C. %d

Explanation

The %d specifier prints a signed integer in decimal. %f is for floating-point values, %c for a single character and %s for a string.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.