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
2
Q
What numbers does error handling start, and end with?
A
Start: 0
End: -1 or NULL
3
Q
Does errno detect every error?
A
No, it cannot detect 0 divided by 0
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
5
Q
What is preprocessing?
A
The C preprocessor processes directives that are inserted/embedded in C source code. (ex. #define, #include, #if, #error)