To use an output file in a C++ program you must
A) make sure the file already exists.
B) create a file stream object that will "point to" (i.e. reference) the file.
C) open the file.
D) do all of the above.
E) do B and C, but not A.
Correct Answer:
Verified
Q7: A while loop is somewhat limited, because
Q8: To use files in a C++ program
Q9: The statements in the body of a
Q10: A variable that keeps a running total
Q11: The block of code in the body
Q13: For data validation, it is best to
Q14: The while loop has two important parts:
Q15: When a loop is nested inside another
Q16: _ are C++ operators that change their
Q17: A sentinel is a special value that
A)
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents