![]() ![]() Void (*signal (int sig, void (*func)(int)))(int) Following is the syntax of the signal() function − Receipt of an interactive attention signal.Ī termination request sent to the program.Ĭ++ signal-handling library provides function signal to trap unexpected events. ![]() Sr.NoĪbnormal termination of the program, such as a call to abort.Īn erroneous arithmetic operation, such as a divide by zero or an operation resulting in overflow. These signals are defined in C++ header file. There are signals which can not be caught by the program but there is a following list of signals which you can catch in your program and can take appropriate actions based on the signal. You can generate interrupts by pressing Ctrl+C on a UNIX, LINUX, Mac OS X or Windows system. Signals are the interrupts delivered to a process by the operating system which can terminate a program prematurely. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |