Question No.18
Bookmark
In fopen(), the open mode "wx" is sometimes preferred over "W" because. 1) Use of wx is more efficient. 2) If wis used, old contents
of file are erased and a new empty file is created. When wx is used, fopen() returns NULL if file already exists.
r only 2
C Both 1 and 2
Only 1
neither 1 and 2
Answers
Answered by
2
Answer:
C both 1 and 2
Explanation:
plss mark me brainleast
Answered by
0
The question is In fopen(), the open mode "wx" is sometimes preferred over "W" because. 1) Use of wx is more efficient. 2) If wis used, old contents
of file are erased and a new empty file is created. When wx is used, fopen() returns NULL if file already exists.
r only 2
C Both 1 and 2
Only 1
neither 1 and 2
Answer: Only 2 is the correct option.
Explanation:
- This function fopen() used in C, is generally implemented to unlock a file. When 'w' is called, it helps in the formation of an empty file.
- Now, sometimes there is a case of duplicate files where same names are there. Here all the file components are erased and it is used as the new empty file.
Hence, option 1 that is only 2 is correct.
Similar questions
History,
3 months ago
Computer Science,
7 months ago
Computer Science,
7 months ago
History,
11 months ago
Science,
11 months ago
Science,
11 months ago