Q517
What is the output of this program? #include #include #include #include int main() int s_id; s_id = shm_open("shared_mem",O_CREAT|O_RDWR,0666); printf("%d ",s_id); if(shm_unlink("shared_mem") == -1) perror("shm_unlink"); return 0;
A.
-1
B.
1
C.
2
D.
3
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board