What is stored in logfile as per below mentioned code if we execute ./a.out > logfile?

int main() {
int fd;
close(1);
fd = open("logfile",O_RDWR, 0744);
write(fd, "Hello", 5);
printf("Worldn");
return 0;
}

a) Hello
b) HelloWorld
c) World
d) None

Submitted by: Murtaza
b) HelloWorld
Submitted by: Murtaza

Read Online Linux OS Management Job Interview Questions And Answers