Q.

What is stored in logfile as per below mentioned code if we execute ./a.out > logfile?nt main() {
int fd; close(1);
fd = open(“logfile”,O_RDWR, 0744); write(fd, “Hello”, 5); printf(“World\n”);
return 0;
}

A. hello
B. helloworld
C. world
D. none
Answer» B. helloworld
1.9k
0
Do you find this helpful?
15

Discussion

No comments yet

Related MCQs