ExamVeda
Login
Home
C plus plus miscellaneous
?

By seeing which operator thus this C++ program stops getting the input?
#include <iostream>
#include <fstream>
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;
}

Answer & Solution
Correct Answer: Option A
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.