Vidyalelo
C++ Programming · Q1001

C++ miscellaneous

Programming · C++ Programming · question 1001

Q1001

What will be the output of the following C++ code by manipulating the text file? #include int main () if (remove( "myfile.txt" ) != 0 ) perror( "Error" ); else puts( "Success" ); return 0;

A.
Error
B.
Success
C.
Runtime Error
D.
Can't say
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board