aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Programming in C
  • ____ and ____ are the format specifiers used to print int...
Multiple choice

____ and ____ are the format specifiers used to print integers.

  1. %c and %d

  2. %f and %d

  3. %i and %d

  4. %c and %f

  5. %c and %i

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

%i and %d are used to print integers. These are identical for printf( ) but different for scanf( ).

Keep practicing — related questions

  • Which of the following format specifiers is used to print integers?
  • Which of the following format specifiers is used in 'C' to print an integer argument in hexadecimal base?
  • Which format specifier is used for printing an unsigned integer in hexadecimal number system?
  • Which of the following type specifier is invalid in printf() functions?
  • Which of the following type specifier is invalid in print f ( ) functions
  • Which of the following format specifiers is used to process unsigned hexadecimal values?
  • Which one of the following printf() format specifiers indicates to print a double value in decimal notation...
  • Which of the following codes is used to print a signed decimal integer?
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy