Vidyalelo
PHP · Q13

File System

Programming · PHP · question 13

Q13

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
Answer
C.
fstat() has nothing to do with files
D.
stat() has nothing to do with files
E.
fstat() is an alias of stat()

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board