#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <stdio.h>
#include <unistd.h>
#define SHMKEY 75
#define K 1024
int shmid;

void main()
{
  shmid = shmget(SHMKEY, K, 0777|IPC_CREAT);
  if (shmid < 0)
  printf("\n error in creating shared memory!");
  else
  printf("\n the shared memory identifier is %d",shmid);
  //return(1);
  exit(0);

}
