Multiple Choice
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
Correct Answer:
Verified
Related Questions
Q17: You may use a read extraction) as
Q18: You may not have more than one
Q19: The flag to display floating point numbers
Q20: If you use the width command, it
Q21: In the following function declaration, the istream
Q23: If the name of the input file
Q24: '\n' is two characters.
Q25: Which of the following is the correct
Q26: When passing a stream to a function,
Q27: Which of the following loop condition statements