For an ifstream object A, a class type B and a local variable of type B called C, the proper way to read in one B object from A into C is:
A) A.read(&C, sizeof(B) ) ;
B) A.read(reinterpret_cast<char*>(&C) , sizeof(B) ) ;
C) A.read(reinterpret_cast<char*>(&C) , B) ;
D) A.read(char* (&C) , sizeof(B) ) ;
Correct Answer:
Verified
Q9: Select the false statement.
A) C++ imposes no
Q10: The new C++14 stream manipulator _ enables
Q11: Select the false statement. The write function:
A)
Q12: Select the proper object type. _ file("file.dat",
Q13: A random access file is organized most
Q14: In order to perform file processing in
Q16: Select the false statement. The reinterpret_cast operator:
A)
Q17: When used with ofstream objects, operator! is
Q18: Which of the following statements is true?
A)
Q19: Which of the following is not a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents