What will be the output of the following C++ code by manipulating the text file?
Posted: Wed Jul 13, 2022 7:53 pm
#include <stdio.h> 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
a) Error
b) Success
c) Runtime Error
d) Can’t say