Multiple choice technology web technology

Which of the following type specifier is invalid in printf() functions?

  1. %a

  2. %b

  3. %c

  4. %d

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In the C standard library printf function, specifiers like %a for hexadecimal floats, %c for characters, and %d for signed integers are all valid. The specifier %b is not a standard format specifier for printf in traditional C, making it invalid.