C INSTRUCTION Assume that variable fp was declared as FILE *fp; and that all calls to fopen() were successful, i.e., fop

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

C INSTRUCTION Assume that variable fp was declared as FILE *fp; and that all calls to fopen() were successful, i.e., fop

Post by answerhappygod »

C
INSTRUCTION
Assume that variable fp was declaredas FILE *fp; and that all callsto fopen() were successful,i.e., fopen() returned a value that isnot NULL.
Please remember that 1KB is equal to 1024 bytes.
Type your answer as an Arabic number (not as an English word);for example, type 8 (not “eight”). Do not use a comma to separatedigits. Do not type a formula, it will be consideredincorrect. For example, do not type 2 * 1024; type it as 2048.
QUESTION
Assume that “YON.TXT” exists with a file size of 2KB. What isnew file size of “YON.TXT” inbytes after executing the following code segmentsuccessfully?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply