Sports GK Questions and Answers 2024 (Latest Updated)

Awards & Honours GK Questions 2024 (Latest Updated)

Question

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+

Advertisement
Article and Schedule Quiz Start Test!
DOWNLOAD CURRENT AFFAIRS PDF FROM APP
Assam Direct Recruitment Test Series

Computer Science Topics