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.