Question: In language c, how would I put this code into a function and remove '0' and replace with EOF #include int main(int argc, char* argv[])

In language c, how would I put this code into a function and remove '\0' and replace with EOF

#include int main(int argc, char* argv[]) { char const* const fileName = argv[1]; FILE* file = fopen("ReadFromFile.c", "r"); char line[256]; char paragraph[1000][1000]; int i=0,j; while (fgets(line, sizeof(line), file)) { for(j=0;line[j]!='\0';j++) { paragraph[i][j]=line[j]; } i++; } int numberofLines=i; printf("Printing the content of the file by printing the content of the array storing the information of file... "); for(i=0;i

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!