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
Get step-by-step solutions from verified subject matter experts
