truncate needs the ___ of the file as an argument but ftruncate works with _______

truncate needs the ___ of the file as an argument but ftruncate works with _______
A. pathname, file descriptor
B. file descriptor, pathname
C. pathname, pathname
D. file descriptor, file descriptor
 
Answer: a
Explanation: The truncate and ftruncate calls can truncate a file to any length. truncate needs the pathname of the file as an argument but ftruncate works with the file descriptor.
 

Tìm kiếm

Back
Top