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.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments