Vidyalelo
Computer Science · Q687

Linux

Engineering and GATE · Computer Science · question 687

Q687

Code snippets str1=”45678 ” str2=”123 ” f1 = fopen(file1,RDWR,RWX) f2 = fopen(file1,RDWR,RWX) write(f1,str1,len_str1) write(f2,str2,len_str2) o/p:

A.
12378
B.
123(newline)8(newline)
Answer
C.
123(newline)78(newline)
D.
45678(newline)123(newline)

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board