#include&lt;stdio.h&gt;   #include&lt;fcntl.h&gt;&nbsp;   int main&#40;&#41;   &#123;            int fd, count;       fd = open&#40;&quot;san.c&quot;,O_RDONLY&#41;;       count = write&#40;fd,&quot;Linux&quot;,5&#41;;       if&#40;count != 5&#41;           perror&#40;&quot;write&quot;&#41;;       return 0;   &#125;
A. it will write the string “Linux” in the beginning of source file “san.c”
B. it will write the string “Linux” in the end of the source file “san.c”
C. segmentation fault
D. none of the mentioned
Answer:A
#include&lt;stdio.h&gt;   #include&lt;fcntl.h&gt;&nbsp;   int main&#40;&#41;   &#123;            int fd, count;       fd = open&#40;&quot;san.c&quot;,O_RDONLY&#41;;       count = write&#40;fd,&quot;Linux&quot;,5&#41;;       if&#40;count != 5&#41;           perror&#40;&quot;write&quot;&#41;;       return 0;   &#125;
A. it will write the string “Linux” in the beginning of source file “san.c” B. it will write the string “Linux” in the end of the source file “san.c” C. segmentation fault D. none of the mentioned
Explanation:This program will write nothing in the source file “san.c” because we are opening the file in read only mode.