Question on input stream

Hello, I have a study guide for my first c++ test. I have a true-false question I can't seem to find an exact answer for.

T F d) The state of an input stream can be tested as a true or false value.

Any help or explanation would be great
T F d) The state of an input stream can be tested as a true or false value.
True. Th istream has operators which allows to test the stream for true/false. See:

http://www.cplusplus.com/reference/ios/ios/operator_bool/
http://www.cplusplus.com/reference/ios/ios/operator_not/
Topic archived. No new replies allowed.