Can some explain this very Clear. I am confused how it went to 'end'.
Krishan said:
(Thu, Nov 3, 2011 03:49:41 PM)
fseek moves the file pointer to the desired position. the last character in the file being EOF, fseek(fs, 0, SEEK_END) moves the poointer to EOF position. now it moves back to 3 characters again to the left that is to 'e' ....
f r i e n d EOF. so, now it prints from current position i.e. end