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

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

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!