Error Handling Flashcards

1
Q

C programming does not provide direct support for error handling

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the global variable that indicates an error occurred during any function call defined in header file?

A

errno

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

If errno is the value of 0, what does it indicates regarding the status of the program?

A

No errors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

strerror()

A

Returns a pointer to the textural representation of the errno value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

errno

A

A global variable and indicates an error occurred during any function call

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

stderr

A

File stream to output all the errors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly