What is the size of a FILE in c. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
+ 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