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"l<"char*>(C), sizeof(B));
c. A.read(reinterpret_cast(&C), B);
d. A.read(char* (&C), sizeof(B));


b. A.read(reinterpret_cast"l<"char*>(C), sizeof(B));

Computer Science & Information Technology

You might also like to view...

Answer the following questions true (T) or false (F)

1. A function does not have an exception specification at all, so exceptions are prohibited. 2. The exception specification for a function has no effect on an exception that is caught within the function.

Computer Science & Information Technology

Which of the following best describes what you should document during a forensic investigation?

A) Imaging process B) Analysis process C) Everything D) Where the evidence was found

Computer Science & Information Technology

Describe the physical and logical security consideration when planning an SQL Server 2012 installation.

What will be an ideal response?

Computer Science & Information Technology

While templates save time by providing a preformatted document, they cannot be edited to include personal information or graphics

Indicate whether the statement is true or false

Computer Science & Information Technology