Use continue;
instead. It will jump out of all case
s and continue executing code after them, which will make the program return to the first line after while (1)
. Don’t forget to close each case
with a break;
.
3
solved How to go back to menu using case in switch case in C