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;} (Solved)
1. hello
2. helloworld
3. world
4. none
- b. helloworld