find the output of the Following …
CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
find the output of the Following c++ code
Considering that the Binaly file Book.dat
exists on hard disk with a data of 200book
Class book
{
int BID;
class Bname [20];
public: void Enter ();
void Display();
};
void main()
{
fstream infile;
infile.open ("Book.dat", ios:: binary | ios:: in);
Book B;
infile. Seekg (5* size of (B));
infile.head ((char* )& B, Size of (B));
cout<<" book number :"<< in file tellg() / Size of (B)+1;
Cout <<" of"<< infile.tellg ()/ Size of (B)<< endl;
infile.close();
}
Posted by Dhanuja Shri 6 years, 1 month ago
- 0 answers
ANSWER
Related Questions
Posted by Priya Shukla 1 year, 3 months ago
- 1 answers
Posted by Kandeepan Jothivel 1 year, 4 months ago
- 2 answers
Posted by Hanni Pham 1 year, 1 month ago
- 1 answers
Posted by Prawar Narang 1 year, 3 months ago
- 1 answers
Posted by Hanni Pham 1 year, 1 month ago
- 0 answers
Posted by Syedali Fathima 1 year, 3 months ago
- 1 answers
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app