Which system call is used to close a file descriptor in C programming?

Which system call is used to close a file descriptor in C programming?
A . lseek()
B . stat()
C . dprintf()
D . close()

Answer: D

Explanation:

The close () system call is used to close a file descriptor in C programming.

Latest CLP-12-01 Practice Questions with 160 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments