Question: Consider the code bellow. The file letters . dat contains ABCDEFGHIJ int main ( ) { fstream fin ( letters . dat, ios::in |
Consider the code bellow. The file lettersdat contains ABCDEFGHIJ
int main
fstream finlettersdat", ios::inios::binary;
char a;
fin.geta;
cout a;
fin.seekg ios::beg;
fin.geta;
cout a ;
fin.seekg ios::end;
fingeta;
cout a;
seekg ios::cur;
fingeta;
cout a endl;
return ;
What will be the output?
Group of answer choices
DEFG
ACEJ
Aaaa
ABCD
ADGJ
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
