Programming Languages C++ Objective
Mar 22, 2013

The statement f1.write((char*)&obj1, sizeof(obj1));

Choose the correct answer:
A) writes the member function of obj1 to f1.
B) Writes the data in obj1 to f1.
C) Writes the member function and the data of obj1 to f1.
D) Writes the address of obj1 to f1.
Detailed Explanation

Option B is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback