CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

By default the standard input device for c++ program is:


A

Keyboard

Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B

Mouse

No worries! We‘ve got your back. Try BYJU‘S free classes today!
C

Scanner

No worries! We‘ve got your back. Try BYJU‘S free classes today!
D

None of the options

No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A

Keyboard


The correct answer is option (A) Key board

Basic input for C++ program

The standard input device for the C++ program is Keyboard. C++ uses a suitable abstraction called streams to perform input and output operations in steady media such as the screen or the keyboard.

  • The standard input stream is sually the input device in a computer is the keyboard.
  • C++ cin statement is the occurrence of the class stream and is applied to read input from the standard input device which is customarily a keyboard.
  • The extraction operator(>>) is utilised along with the object cin for reading inputs. The extraction operator extracts the data from the object cin which is entered using the keyboard.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Introduction to Direct Proportions
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon