It produces receipt for an active signal.
It terminates the program abnormally.
It sends a termination request to the program.
It produces the erroneous arithmetic operation such as divide by zero or an operation resulting in an overflow.
It means an invalid access to storage.
This signal detects the illegal command or instruction.
THE SIGNAL ( ) FUNCTION
In C++, signal handling library provides function signal to trap unexpected events.
SYNTAX FOR THIS FUNCTION IS:
signal(registered signal, signal handler)
- In the above syntax, the first argument is an integer which represents the signal number and the second argument is the pointer to a signal handling function.
- The signal which we want to be catching it should be registered and must be associated with a signal handling function. It should be of void type.