Which of the following will not change the file-position pointer to the same position as the others? Assume a 10-byte file size and a current position at byte # 1.

a. fileObject.seekg( 2 );
b. fileObject.seekg( 1, ios::cur );
c. fileObject.seekg( 2, ios::beg );
d. fileObject.seekg( 8, ios::end );

d. fileObject.seekg( 8, ios::end );

Computer Science & Information Technology

You might also like to view...

________ software helps protect against malware

Fill in the blank(s) with correct word

Computer Science & Information Technology

The Towers of Hanoi problem makes exactly ______ moves when it starts with N disks.

a) 2N b) 2N – 1 c) N2 d) N3 – 1

Computer Science & Information Technology