+ 4
What is the use of ftell()?
2 Answers
+ 11
Declaration: long int ftell(FILE *fp)
ftell function is used to get current position of the file pointer. In a C program, we use ftell() as below.
ftell(fp);
+ 5
ftell() returns the current file position of the specified stream with respect to the starting of the file. This function is used to get the total size of file after moving the file pointer at the end of the file.



