Input Output Streams(Engineering > Computer Science And Engineering > C++ Language ) Questions and Answers
Explanation:-
Answer: Option D. -> 65 In this program, We are printing the five spaces and then we are printing the value of 65.
Explanation:-
Answer: Option B. -> 2b In this program, We are printing the hexadecimal value of the given decimal number by using hex function.
Explanation:-
Answer: Option B. -> streambuf If you construct an object of class ostream, you must specify a streambuf object to the constructor.
Explanation:-
Answer: Option C. -> 3 There are three output stream classes in c++. They are ostream, ofstream and ostrstream.
Explanation:-
Answer: Option A. -> By seeing a blankspace cin will stop its extraction when it encounters a blank space.
Explanation:-
Answer: Option C. -> Error We are not allowed to do addition operation on cin.
Explanation:-
Answer: Option C. -> 3 There are three parameters in getline function. They are a pointer to an array of characters and maximum number of characters and a delim.
Explanation:-
Answer: Option C. -> It will print what we give. In this program, We are printing the input what we read from cin.
Explanation:-
Answer: Option A. -> After pressing return key After pressing return key
Explanation:-
Answer: Option B. -> getline If a user wants to input a sentence with blankspaces, then he may use the function getline.