Question: write a C function that counts the total number of characters and total number of lines in a file. Character can be anything including blank

write a C function that counts the total number of characters and total number of lines in a file. Character can be anything including blank space. A line is a sequence of characters terminated by new line or end of file. function should be void file_count(char *file, int *characters, int *lines)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!