Write statements to place the file fp1:
(i) to beginning of file
(ii) to 25th byte from the beginning
(iii) to 10 bytes behind the current position of file pointer.
(iv) to 25 bytes behind the EOF position
Answer:
(i) to beginning of file : fp1.fseek(1)
(ii) to 25th byte from the beginning : fp1.(25,0)
(iii) to 10 bytes behind the current position of the file pointer : fp1.(-10,1)
(iv) to 25 bytes behind the EOF position : fp1.(-25,2)