recategorized by
471 views
0 votes
0 votes

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;

} 
  1. Done  
  2. Error  
  3. Runtime error  
  4. None of the mentioned
recategorized by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
1
gatecse asked Mar 2, 2018
358 views
Which of the following statement about loop is correct?Index value retained outside the loopIndex value can be changed from within the loopGoto can be used to jump, out o...
0 votes
0 votes
1 answer
2
VIDYADHAR SHELKE 1 asked May 30, 2018
582 views
Program counter contains address of the Next programs to be fetched Previous programs to be fetched Previous information to be fetched Next information to be fetched...
1 votes
1 votes
1 answer
3
radha gogia asked Jul 8, 2016
1,144 views
0 / \ 5 7 / \ / \ 6 4 1 3 \ 9Tree given in the form: (node value(left subtree)(right subtree))For tree given above: (0(5(6()())(4()(9()())))(7(1()())(3()())))Input forma...
1 votes
1 votes
0 answers
4
RahulVerma3 asked 6 days ago
75 views
My question is that can we use command line arguments without use of main function's parameters argc and *argv?