1.

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» C. world


Discussion

No Comment Found