What is the difference between stat() and fstat()?

What is the difference between stat() and fstat()? Correct Answer While fstat() works on open file pointers, stat() works on files specified by pathname

Related Questions

There are 2 clocks A and B. The angle between minutes and hour hand of the clock A is x degrees and that between hands of clock B is y degrees. The sum of x and y is 180 degrees and difference between x and y is 40 degrees. If time on clock A is between 2 and 3 and on clock B is between 4 and 5, which of these is correct time combination of both clocks?