Multiple Choice
If the name of a file to open is in the string variable name fileName, which of the following will correctly open the file for output?
A) out_file.openfileName) ;
B) out_file.open"fileName") ;
C) fileName.openoutfile) ;
D) out_file.openfileName.c_str) ) ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q52: Which of the following returns the fourth
Q53: All c-strings must be terminated by _
Q54: What is wrong with the following attempted
Q55: The declaration of an STL vector doubleVec
Q56: What is the value of numbers.capacity) after
Q58: Which string function returns the first occurrence
Q59: A string variable and a c-string are
Q60: What is the proper way to declare
Q61: The following declares a c-string variable that
Q62: To use the string class, you must