Which of the following is the correct way to determine if a file stream named inFile opened correctly?

a. if( inFile.open() )
b. if( inFile.fail() )
c. if( inFile.opened() )
d. if( inFile.failed() )

b. if( inFile.fail() )

Computer Science & Information Technology

You might also like to view...

The _____ of a digitized sound affects the accuracy of the sampled amplitudes being stored.

A. amplitude B. frequency C. sampling rate D. bit depth E. dynamic range

Computer Science & Information Technology

Express 10 meters in feet (use 1 meter is 3.28 feet).

What will be an ideal response?

Computer Science & Information Technology