Handling Multiple Signals

Learn how to handle multiple signals in C.

Example program

We have provided the source for the C program. When you press the RUN button, it will automatically compile and execute the given program and open the terminal for you in which you will see the output of the given program. Your task is to open the new terminal using the + button, and run the following commands in the terminal:

ps -a
kill pid // pid of main
ps -a

Get hands-on with 1200+ tech skills courses.