1.

Which library function is used for printing error messages?(a) strerror(b) stderror(c) strer(d) ptrerrorThis question was addressed to me during an interview.I need to ask this question from File handling System Calls in section System Programming I – Files of Unix

Answer»

The CORRECT option is (a) strerror

Explanation: The library FUNCTION strerror, USES the error NUMBER as argument and returns a pointer to the STRING representing the error.



Discussion

No Comment Found

Related InterviewSolutions