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 ) );


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

Computer Science & Information Technology

You might also like to view...

In client/server mode, each __________ module performs a single service such as a file service, a memory service, and so on.

a. kernel b. resident c. client d. server

Computer Science & Information Technology

RGB colors such as the ones in the accompanying figure range from ____.

A. 0 to 125 B. 0 to 255 C. 1 to 255 D. 1 to 256

Computer Science & Information Technology

You have just installed a DHCP server and created a new scope with the default options. A DHCP client leases an IP address at 8:00am on Monday, February 3rd. When will the client lease expire if it is never renewed?

A. Later that day at 4:00pm B. February 11 at 8:00am C. Tuesday, February 4 at 8:00am D. February 6 at 4:00pm

Computer Science & Information Technology

Press F12 to open the File tab.

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

Computer Science & Information Technology