0

What is the size of a FILE in c.

Why it varies from compiler to compiler.

19th Sep 2020, 5:14 PM
SAMARASIMHA REDDY
SAMARASIMHA REDDY - avatar
1 Respuesta
+ 2
Open the file for reading.Then use fseek with SEEK_END cursor option.store the result of ftell in variable and print the result you get the file size.It varie because some compiler don't use common some size of data type i think .
19th Sep 2020, 6:19 PM
HBhZ_C
HBhZ_C - avatar