Which of the following offset is used with lseek system call to set the offset pointer to the end of the file?

Tiên Hương

New member
Which of the following offset is used with lseek system call to set the offset pointer to the end of the file?
A. SEEK_SET
B. SEEK_END
C. SEEK_CUR
D. SEEK_CR
 
Answer: b
Explanation: The offset signifies the position of the offset pointer which can take one of these three values:
Code:
 SEEK_SET    -    offset pointer set to the beginning of file
 SEEK_END    -    offset pointer set to the end of file
 SEEK_CUR    -    offset pointer remains at current location
 

Tìm kiếm

Back
Top