Login
Remember
Register
Ask a Question
Which of the following is not a valid way to open a file in C Language?
0
votes
asked
May 23, 2024
in
C Plus Plus
by
rajeshsharma
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”);
open
a
file
in
c
language
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 23, 2024
by
rajeshsharma
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.
...