C language doesn't scan variable
C language doesn’t scan variable after reading that variable as string(or char) instead of integer But the most weird is that it is entering in infinite loop int main( ){ int answer; printf("Hello\n"); while (answer != 3){ start();//It is declared above scanf("%d",&answer); switch (answer) { case 1:{ showCenters();//Also declared break;} case 3:{ break;} default:{ printf("Invalid… Read More C language doesn't scan variable