What is the size of a FILE in c. | Sololearn: Learn to code for FREE!

0

What is the size of a FILE in c.

Why it varies from compiler to compiler.

9/19/2020 5:14:21 PM

SAMARASIMHA REDDY

1 Answer

New Answer

+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 .