What is the difference between stat() and fstat()?
A
While stat() works on open file pointers, fstat() works on files specified by pathname
B
While fstat() works on open file pointers, stat() works on files specified by pathname
C
fstat() has nothing to do with files
D
stat() has nothing to do with files
E
fstat() is an alias of stat()
Correct Answer: While fstat() works on open file pointers, stat() works on files specified by pathname