Write the function: int line_length(const char *filename, int n); The function s
ID: 3615373 • Letter: W
Question
Write the function: int line_length(const char *filename, int n); The function should return the lehgth of linen in the text file whose name isfilename (assuming that the first line inthe file is 1). If the line does not exist, the function shouldreturn 0. Write the function: int line_length(const char *filename, int n); The function should return the lehgth of linen in the text file whose name isfilename (assuming that the first line inthe file is 1). If the line does not exist, the function shouldreturn 0.Explanation / Answer
please rate - thanks #include #include int line_length(const char *filename, int n); main() {int n,count; char filename[20]; printf("Enter filename: "); scanf("%s",&filename); printf("Enter line interested in (Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.