Exceptions occur when exceptional situations occur in your program. For example, what if you are going to read a file and the file does not exist? Or what if you accidentally deleted it when the ...
Signal handling is weird and one of the most confusing parts is the handling of SIGINT / KeyboardInterrupt / Ctrl-C. Because for non-0-PID processes, a manual Ctrl-C is usually propagated to its ...