Vidyalelo
C++ Programming · Q565

C++ miscellaneous

Programming · C++ Programming · question 565

Q565

By seeing which operator thus this C++ program stops getting the input? #include #include using namespace std; int main () char ch; streambuf * p; ofstream os ("test.txt"); pbuf = os.rdbuf(); do ch = cin.get(); p -> sputc(ch); while (ch != '.'); os.close(); return 0;

A.
dot operator
Answer
B.
insertion operator
C.
$ symbol
D.
@ symbol

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board