What is the difference between stat() and fstat()?
While fstat() works on open file pointers, stat() works on files specified by pathname
Correct:
While fstat() works on open file pointers, stat() works on files specified by pathname
Answer B is correct. The fstat function works by retrieving statistical information on a file based on an open file pointer, while stat() retrieves the same information based on a pathname.