#include&lt;stdio.h&gt;   #include&lt;fcntl.h&gt;   #include&lt;sys/stat.h&gt;   #include&lt;sys/mman.h&gt;&nbsp;   int main&#40;&#41;   &#123;       int s_id;       int *ptr;       s_id = shm_open&#40;&quot;shared_mem&quot;,O_CREAT|O_RDWR,0666&#41;;       if&#40;s_id == -1&#41;           perror&#40;&quot;shm_open&quot;&#41;;       ptr = mmap&#40;NULL,100,PROT_WRITE,MAP_PRIVATE,s_id,0&#41;;       if&#40;ptr == MAP_FAILED&#41;;           perror&#40;&quot;mmap&quot;&#41;;       if&#40;munmap&#40;ptr,100&#41; == -1&#41;           perror&#40;&quot;munmap&quot;&#41;;       if&#40;shm_unlink&#40;&quot;shared_mem&quot;&#41; == -1&#41;           perror&#40;&quot;shm_unlink&quot;&#41;;       return 0;   &#125;
A. mmap: Success
B. mmap: Failure
C. munmap: Success
D. munmap: Failure
Answer:A
#include&lt;stdio.h&gt;   #include&lt;fcntl.h&gt;   #include&lt;sys/stat.h&gt;   #include&lt;sys/mman.h&gt;&nbsp;   int main&#40;&#41;   &#123;       int s_id;       int *ptr;       s_id = shm_open&#40;&quot;shared_mem&quot;,O_CREAT|O_RDWR,0666&#41;;       if&#40;s_id == -1&#41;           perror&#40;&quot;shm_open&quot;&#41;;       ptr = mmap&#40;NULL,100,PROT_WRITE,MAP_PRIVATE,s_id,0&#41;;       if&#40;ptr == MAP_FAILED&#41;;           perror&#40;&quot;mmap&quot;&#41;;       if&#40;munmap&#40;ptr,100&#41; == -1&#41;           perror&#40;&quot;munmap&quot;&#41;;       if&#40;shm_unlink&#40;&quot;shared_mem&quot;&#41; == -1&#41;           perror&#40;&quot;shm_unlink&quot;&#41;;       return 0;   &#125;
A. mmap: Success B. mmap: Failure C. munmap: Success D. munmap: Failure
Explanation:Memory of the 100 bytes is mapped successfully as shared memory.