Multiple choice

The format string of printf() function can contain

  1. character, conversion specifications and escape sequences

  2. character, integers and floats

  3. strings, integers and escape sequences

  4. none of these

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

The format string in printf() can contain ordinary characters (which are printed), conversion specifications (starting with %), and escape sequences (like \n).