To open a file with a user supplied name, you would need to store the name in a variable. If the file name was to have no more than 20 characters in it, which would be an appropriate declaration of the file name variable?
A) char filename;
B) char filename20) ;
C) char filename[20];
D) char filename[21];
Correct Answer:
Verified
Q18: The manipulator used to change the number
Q19: If you use the width command, it
Q20: Two different objects of the same class
Q21: In the following function declaration, the istream
Q22: Which of the following is the correct
Q24: Which include directive is necessary for file
Q25: If a file did not open correctly,
Q26: After a stream is opened, before it
Q27: Which statement correctly opens an input stream
Q28: The member function setf stands for
A) set
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