aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
Multiple choice

Which one is the valid way to get a character from a keyboard?

  1. cin>>c

  2. cin.get(c)

  3. c=cin.get()

  4. all of the above

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

All are valid ways to get a character from a keyboard.

Keep practicing — related questions

  • Which of the following functions is used to input data from keyboard?
  • Which of the following will read a character from the keyboard and store it in the variable c?
  • If a character string is to be received through keyboard, which function would work faster?
  • Which function would you use if a single key is to be received through the keyboard?
  • If an integer is to be entered through keyboard, which function you would use?
  • Which of the following member functions is used to get a single character from a file?
  • Which of the given operations of the function is not true for that function?
  • Which of the following statements is not true?
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy