Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

How to stop program crashing

0 votes
asked Mar 10, 2019 by Kyle (200 points)
Every time I enter a character for my switch statement it just crashes is there anyway to stop this

1 Answer

0 votes
answered Mar 13, 2019 by IamAkashGhosh (140 points)
Can you please share the code? Are you using C or C++? This may be due to inout buffer which you need to clear in the appropriate place. Sharing the code will help.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.