Question: Function in c comments appreciated 8. Write a function that counts the characters and lines in a file. A character can be any character including
8. Write a function that counts the characters and lines in a file. A character can be any character including letter, digit, symbol, blank, tab, newline, etc. A line is a sequence of characters terminated by newline character or end of file character. The function prototype is void file count (char file, int *characters, int "lines). The function takes the file name as the input parameter and puts the counts of characters and lines into the output parameters
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
