#include <stdio.h> int main () { int result; char oldname[] = "myfile2.txt"; char newname[] = "newname.txt"; result = rename(oldname, newname ); if (result == 0) puts ( "success" ); else perror( "Error" ); return 0; }
a) name
b) new
c) newname
d) Error
What is the name of the myfile2 file after executing the following C++ code?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What is the name of the myfile2 file after executing the following C++ code?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!