What is the output of this program?
#include
#include
int main ()
{
ofstreamoutfile ("test.txt");
for (int n = 0; n < 100; n++)
{
outfile<< n; outfile.flush();
}
cout<< "Done"; outfile.close();
return 0;
}
- Done
- Error
- Runtime error
- None of the mentioned