Q779
What is the output of this program? #include #include #include int main() int fd, count; char ch, *buff; buff = (char *)malloc(sizeof(char)*10); fd = open("demo.c",O_RDONLY); count = read(fd,buff,5); printf("%d ",count); return 0;
A.
5
AnswerB.
10
C.
0
D.
-1
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board