Sample code for share memory?

Hai all!,

Can any body help me?
How can we shared memory when the server process declare an array variable like: int n[] = {1,2,3,4,5,6,7,8,9,10};

Can you all give sample code to share memory on this variable within processes.

Hope you all help on this. plz…

arms

Look at lib reference for shm_open(), there is a nice sample there.