Error Handling Flashcards
1
Q
C programming does not provide direct support for error handling
A
True
2
Q
What is the global variable that indicates an error occurred during any function call defined in header file?
A
errno
3
Q
If errno is the value of 0, what does it indicates regarding the status of the program?
A
No errors
4
Q
perror()
A
Displays the string you pass to it, followed by a colon, a space, and then a textual representation of the current errno value
5
Q
strerror()
A
Returns a pointer to the textural representation of the errno value
6
Q
errno
A
A global variable and indicates an error occurred during any function call
7
Q
stderr
A
File stream to output all the errors