-
By seeing which operator thus this program stops getting the input?
#include <iostream>
#include <fstream>
using namespace std;
int main ()
{
char ch;
streambuf * pbuf;
ofstream os ("Example.txt");
pbuf = os.rdbuf();
do {
ch = cin.get();
pbuf -> sputc(ch);
} while (ch != '.');
os.close();
return 0;
}
-
- $ symbol
- dot operator
- insertion operator
- All of above
- None of these
Correct Option: B
This program will stop getting the input, When it occurs the dot(.) operator.