CPP > File handling > Beginner Next/Skip this question

What would be the output of folllowing C++ program using fstream?

// virtual members
#include <iostream>
#include<fstream>

using namespace std;

int main () {
    ofstream fout;
    fout.open("input.txt");
    for(int i=1;i<=100;i++)
         fout<<i<<endl;
    fout.close();
    return 0;
}
Answers :
social share share on facebook share on twitter share on google plus share on linkedin
Add Comments :

Login

Register

Next Question