MCQs>IT & Programming>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 */ :
System Programming MCQs
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 */ :
Answer
Correct Answer: Replace the declaration with: int file1;
Explanation:
Note: This Question is unanswered, help us to find answer for this one