1.

What is the output of this program?
#include <iostream>
#include <fstream>
using namespace std;
int main ()
{
int len;
char * buff;
ifstream is;
is.open ("Example.txt", ios :: binary );
is.seekg (0, ios :: end);
len = is.tellg();
is.seekg (0, ios :: beg);
buff = new char [len];
is.read (buff, len);
is.close();
cout.write (buff, len);
delete[] buff;
return 0;
}

A. Example.text
B. This is example
C. Example
D. Compilation Error
E. Runtime Error
Answer» F.


Discussion

No Comment Found

Related MCQs