lads

I'm new to C, and am playing catch-up on assignments. While I'm not looking for anyone to do work for me, I nevertheless need someone to walk me through a problem. I understand forking, but my problem is the structure of the program itself. What I basically need to know is how to deal with all the child PIDs first (i.e. printf "I'm a kid and my pid is: ) but 'remember' those PIDs so that the parent can report/list them before it dies. A pitiful problem I admit.

Please help.