Online GK Series

This site is dedicated to the aspirants of competitive exams SSC, UPSC, Railways, Postal Assistants, Bank, GATE and NET

3,00,000 Jobs Waiting For You

Q.

Which of the following functions need a filename?

A fopen
B fclose
C fread
D none of these
Answer & Explanation
Option: [A]

The fopen function need a filename. It opens a file and points either begining or end of the file.

fp = fopen ("file.txt", "r");

here r stands for file access mode for reading a file only. The other modes are w, a, r+, w+, a+

Your Valuable Comments Please...

Useful Computer Science EBooks