Q. Which function is used to open a file in C?

  • (A) open()
  • (B) fopen()
  • (C) file_open()
  • (D) fileopen()
πŸ’¬ Discuss
βœ… Correct Answer: (B) fopen()
Explanation: In C programming language, the fopen() function is used to open a file.

Syntax:

ptr = fopen("fileopen","mode");
Where, fileopen is the name of the file, and mode is the mode of the file.
Explanation by: Team MCQ Buddy
In C programming language, the fopen() function is used to open a file.

Syntax:

ptr = fopen("fileopen","mode");
Where, fileopen is the name of the file, and mode is the mode of the file.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
214
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Team MCQ Buddy
Publisher
πŸ“ˆ
88%
Success Rate