sending signals between two processes

Hello,

I have two programs: server.c and client.c
I need to send signal from client to server. As far as I know I need to use kill() function. To use kill() function I have to know the pid the second process. How can I send pid from process to process(both are written in separate files).

Thanks

looks like homework?!

it is

so please read the rules that you agreed to!