C Programming Flashcards

1
Q

What does fseek() do?

A

the fseek() function is used to reposition the file pointer within an open file. allows you to move a pointer to a specific location

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

What numbers does error handling start, and end with?

A

Start: 0
End: -1 or NULL

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

Does errno detect every error?

A

No, it cannot detect 0 divided by 0

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

What is an exit function and what are the 2 exit funcitons programmers use?

A

An exit function is used to indicate exit status.
EXIT_SUCCESS & EXIT_FAILURE

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

What is preprocessing?

A

The C preprocessor processes directives that are inserted/embedded in C source code. (ex. #define, #include, #if, #error)

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