This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
2
Lab4 fread
Post Flair (click to view more posts with a particular flair)
Post Body
Why do we use fread(header, HEADER_SIZE, 1, input) ? What I mean is, why do we use the size argument as 44? Surely it should be the other way around, as in uint8_t which is equal to 1 byte so that makes sense in the code ? or does fread act like a loop where it will read 44 bytes 1 at a time but won't finish until all bytes are read?
Thanks
Author
Account Strength
100%
Account Age
8 years
Verified Email
Yes
Verified Flair
No
Total Karma
16,292
Link Karma
4,233
Comment Karma
12,039
Profile updated: 1 day ago
Posts updated: 4 months ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 2 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/cs50/commen...