What is the output of this program?
A. it will create a file “123hoidap.txt” in the present working directory
B. it will write the string “Linux System Programming” in the file “123hoidap.txt”
C. all of the mentioned
D. none of the mentioned
Code:
#include<stdio.h>
#include<fcntl.h>
int main()
{
int fd, count;
fd = open("123hoidap.txt",O_WRONLY|O_CREAT);
count = write(fd,"Linux System Programming",5);
if(count != 5)
perror("write");
return 0;
}
B. it will write the string “Linux System Programming” in the file “123hoidap.txt”
C. all of the mentioned
D. none of the mentioned