Q645
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 granted "); return 0;
A.
Permission granted
: Success
Answer: Success
B.
Permission granted
C.
segmentation fault
D.
none of the mentioned
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board