Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Which of the following is not a valid way to open a file in C Language?
Home
C Plus Plus
Which of the following is not a valid way to open a file in C Language?
0
votes
asked
May 23
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
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.
...