Write a c-program to create a shared memory.

c-program to create a shared memory.#include<stdio.h&alt;
#include<sys/types.h&alt;
#include<sys/ipc.h&alt;
#include<sys/shm.h&alt;
main()
{
int shmid;
shmid = shmget((key_t)0x1000, 10, IPC_CREAT | 0666);
if(shmid < 0)
{
printf("creation of shared memory segment failed");
}
printf("successfully created with shmid %d \n",shmid);
}c-program to create a shared memory.

Related post