Write out the file contents forout2as produced by the following code. Give specific values to bytes or ranges of bytes. The values of the same variable are being written using f print f() and then f...

Write out the file contents forout2as produced by the following code. Give specific values to bytes or ranges of bytes. The values of the same variable are being written using f print f() and then f write(). How many bytes are written by each, and which is more efficient?#include main(){FILE *fpt;struct frog {float d;int x;} henry;henry.d=12.73;henry.x=81925;fpt=fopen("out2","w");fprintf(fpt,"%7.2f %7d\n",henry.d,henry.x);f write(&henry,sizeof(struct frog),1,fpt);fclose(fpt);}
Nov 25, 2021
SOLUTION.PDF

Get Answer To This Question