linked linked linkedin whatsapp remove
Feedback

System Programming Quiz System Programming

Choose the answer that corrects the following code. FILE * file1; : if ((file1 = open("/valid_dir/existing_file", O_RDONLY, 0666)) == ERROR) { /* /valid_dir/existing_file is guaranteed to exist */ :

Bitwise OR O_RDONLY with another flag
Do not open a file within a condition
Use either one of 'O_RDONLY' and '0666'
Replace the declaration with: int file1;

Answer:
Replace the declaration with: int file1;

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