Which format specifier is normally used with printf() to display an integer value of type int?

Options

  • A. %c
  • B. %f
  • C. %d
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. %d

Detailed Explanation

Answer: (C) %d

The %d format specifier is commonly used with printf() to display a signed integer of type int.

%c is used for a character and %f is used for floating-point output in the appropriate printf context.

Therefore, for a normal int value, %d is the expected format specifier.