linked linked linkedin whatsapp remove
Feedback

System Programming Quiz System Programming

Given the following line: my_fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_APPEND, 0644); Which statement is true?

Syntax error; the second argument should be a single integer type
Syntax error; the function takes only one more argument after 'filename'
Runtime error opening the file as the various flags and modes are in conflict
Opens a file descriptor, bitwise OR'ing output flags and in mode 644

Answer:
Opens a file descriptor, bitwise OR'ing output flags and in mode 644

Note: This Question is unanswered, help us to find answer for this one