Suppose you declare Student student1. To write student1 to a binary file, use _____.

a. binaryio.write(&student1, sizeof(Student));
b. binaryio.write(student1);
c. binaryio.write(&student1);
d. binaryio.write(reinterpret_cast(&student1), sizeof(Student));


d. binaryio.write(reinterpret_cast(&student1), sizeof(Student));

Computer Science & Information Technology

You might also like to view...

Which of the following operators is used for performing exponentiation?

A) * B) / C) # D) ^

Computer Science & Information Technology

?In a public key encryption environment, each user on the network has a pair of keys: a foreign key and a private key.

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

Computer Science & Information Technology

A variable is always declared and defined at the same time.

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

Computer Science & Information Technology

A good ____________________ offers rules on formatting possessives, capitalizing titles, and using commas.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology