1. Write a C program to fork a child process with a fork() andprint the process id for a child and
for a parent process using a C library function getpid(). Create anint variable that should be
incremented by a child process and decremented by a parent process.Print the value of the
variable for both a child and a parent. 1 Note: a child process idupon returning from fork() is
0.
2. Run a program, comment on the received ids and the values of thevariable. Explain.
3. Trace system calls used by your program using stracenameofyourfile (-c option gives a
summary of system calls only)
4. Identify a
PayPal Gateway not configured
PayPal Gateway not configured