A

Admin • 833K Points
Coach

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

  • (A) open()
  • (B) fopen()
  • (C) file_open()
  • (D) fileopen()
  • Correct Answer - Option(B)
  • Views: 33
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

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.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.