+ 4

What is the use of ftell()?

27th Jun 2019, 12:52 PM
Pratik Bhondave
Pratik Bhondave - avatar
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);
27th Jun 2019, 1:22 PM
JTLZ
+ 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.
2nd Jan 2020, 9:14 AM
Pratik Bhondave
Pratik Bhondave - avatar