MCQ Practice

What is the output of this program? #include #include #include #include #include int main() { int s_id; s_id = shm_open("shared_mem",O_CREAT|O_RDWR,0666); if(s_id != EACCES) perror("Permission grantedn"); return 0; }

A

Permission granted : Success

B

Permission granted

C

segmentation fault

D

none of the mentioned

Correct Answer: A