File Input Output - Study Mode

[#11] gets() function checks overflow run.
Correct Answer

(B) False

[#12] In linux, apart from including math header file, the program is successfully executed by which of the following?
Correct Answer

(D) cc -lm filename.c

[#13] What is function srand(unsigned)?
Correct Answer

(A) Sets the seed for rand

[#14] What is the purpose of the C function? int ferror(FILE *fp)
Correct Answer

(B) They check for output errors

[#15] What if size is zero in the following C statement? realloc(ptr, size)
Correct Answer

(B) Free the memory pointed to by ptr