I'm trying to shorten a messy and uber long tic tac toe program(not coded by me) by using functions but there's an error called illegal break
Code:int Xwon() { printf("\n\t\tX won!!!\n"); printf("\n1. New Game 0. Quit: "); scanf("%d", &choice); if (choice== 0) { printf("\nPress Enter"); break; } else return main(); }