Questions and Answers
In C programming, what function is used to open a file?
fopen()
Which mode is used to open a file for reading in C programming?
r
What function is used to close a file in C programming?
fclose()
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Study Notes
File Operations in C Programming
- The
fopen()
function is used to open a file in C programming, taking two arguments: the file name and the mode. - The
"r"
mode is used to open a file for reading in C programming. - The
fclose()
function is used to close a file in C programming.