Multiple Choice
Assuming outFile is a file stream object and number is a variable, which statement writes the contents of number to the file associated with outFile?
A) write(outFile, number) ;
B) outFile >> number;
C) outFile << number;
D) number >> outFile;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q25: What is the output of the following
Q26: A while loop's body can contain multiple
Q27: A statement that may be used to
Q28: The _ loop is a good choice
Q29: It is possible to define a file
Q31: The two important parts of a while
Q32: These are operators that add and subtract
Q33: A special value that marks the end
Q34: In a for statement, this expression is
Q35: To allow file access in a program,