CS计算机代考程序代写 QUESTION 1

QUESTION 1
//COPY AND PASTE THE QUESTION BELOW  ON TOP OF  YOUR SOURCE CODE AS COMMENTS
 
Study the SIGFPE signal.
 
Write a simple program to demonstrate generating the SIGFPE signal (divide by zero for example). Your program should catch the signal and display a message.
 
If your signal handler simply displays a message but do not terminate the program, what would happen? Investigate your observation (google online) and provide a brief answer to what you observed.
 
————————————————————————————————————————————
 
Script your terminal session with timing log option to show how your program compiles and runs.
Submit your script outputs as was done in lab and all source code.