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; }

Correct Answer: helloworld

Make the most of this question

This page focuses on one Operating System Architecture question from Engineering. After checking the answer, return to the topic list to practice more or run a timed set.

Operating System Architecture MCQ: 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; } | Extra Education