Interview Question 3576

Created by admin on Sat, 17/11/2012 - 12:43
Question: 

what will be the position of the file marker? a: fseek(ptr,0,SEEK_SET); b: fseek(ptr,0,SEEK_CUR);

Language: 
Answer: 

a: The SEEK_SET sets the file position marker to the starting of the file. b: The SEEK_CUR sets the file position marker to the current position of the file.