Question: 2. The C-code is given to you 3. if ((fp = fopen(filename, r )) == NULL) { printf(Error. Cannot read from file %s. Exit
2. The C-code is given to you 3. if ((fp = fopen(filename, r )) == NULL) { printf("Error. Cannot read from file %s. Exit ", filename); 4. 5. 34567o 6. 7. } 8. exit(1); 9. while (fgets(line, sizeof line, fp) != NULL) { 10. printf("Successfully copied"); 11. } 12. fclose(fp); Write down how many systems call this program invoke? Explain what type of system call it is. 1 (9 Marks)
Step by Step Solution
There are 3 Steps involved in it
Lets analyze the code to identify the system calls and their types fopen This is a system call ... View full answer
Get step-by-step solutions from verified subject matter experts
