Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Should a writer perform cleanup (removing all its messages in the buffer) upon receiving a CTRL + C?

0
Posted

Should a writer perform cleanup (removing all its messages in the buffer) upon receiving a CTRL + C?

0

For this assignment you may assume CTRL + C would never be used. In other words you are not required to handle this exception. If this were a real software system, then yes, you should catch CTRL + C and also other signals and perform cleanup as needed before the process terminates.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123