File Input Output - Study Mode

[#151] Which function will return the current file position for stream?
Correct Answer

(C) ftell()

[#152] When a C program is started, O.S environment is responsible for opening file and providing pointer for that file?
Correct Answer

(D) All of the mentioned

[#153] What is the function of FILE *tmpfile(void)?
Correct Answer

(A) creates a temporary file of mode "wb+"

[#154] What happens when zero flag is used with left justification?
Correct Answer

(B) zero flag is ignored

[#155] EOF is an integer type defined in stdio. hand has a value . . . . . . . .
Correct Answer

(D) - 1