Question: #include #include #include #include int main() { char c; int in, out; in= open(file.in, O_RDONLY); out= open(file.out, O_WRONLY|O_CREAT, S_IRUSR|S_IWUSR); while(read(in, &c, 1)==1) write(out, &c, 1);

#include

#include

#include

#include

int main()

{

char c;

int in, out;

in= open("file.in", O_RDONLY);

out= open("file.out", O_WRONLY|O_CREAT, S_IRUSR|S_IWUSR);

while(read(in, &c, 1)==1)

write(out, &c, 1);

exit(0);

}

Rewrite the code above using standard C library function from stdio.h, for example using fread and fwrite. Add code for recording the execution time.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!