C - Files and Preprocessors Questions and Answers
Practice ModeShowing 10 of 96 questions
Q61
Which of the following is the correct function prototype for the function main ( ) ?
Answer: Option D
Q62
Which is more correct ?
'int main (int argc, char ** argv)'
'int main (int argc, char* argc [ ] )'?
Answer: Option B
Q63
The function used to position the file pointer in C is
Answer: Option C
Q64
The function used to position the file pointer in C is
Answer: Option C
Q65
What file I/O function is used to report the number of bytes from the beginning of the file to the file position indicator ?
Answer: Option A
Q66
1. fcloseall()
2. clearerr()
3. ferror()
Which o the above are valid ANSI C functions ?
Answer: Option C
Q67
Which standard file is to be include to use the memcpy() function without a warning in an ANSI C compiler ?
Answer: Option A
Q68
If there is a need to see output as soon as possible. Which function will force the output from the buffer into the output stream ?
Answer: Option D
Q69
After a library function returns a failure, which of the following will print out the appropriate error message corresponding to error number given by errno?
Answer: Option D
Q70
Which ANSI c standard function could be used to sort a s tring array ?
Answer: Option A