Question: Consider the following code snippet. FILE * inp = NULL: 2inp = fopen(input.txt, r): What is the most correct answer about the above code if

Consider the following code snippet. FILE * inp = NULL: 2inp = fopen("input.txt", "r"): What is the most correct answer about the above code if the file does not exist? A. fopen returns NULL B. fopen returns -1 C. fopen returns 0 D. Both (A) & (B)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
