0 votes
in C Plus Plus by
Which of the following is not a valid way to open a file in C Language?

A) fopen(“file.txt”, “r”);

B) fopen(“file.txt”, “w”);

C) fopen(“file.txt”, “a”);

D) open(“file.txt”, “r”);

1 Answer

0 votes
by
Answer: D

Explanation: The open function is not a valid way to open a file in C Language. The correct function to use is fopen, as shown in options A-C.
...