I have some codeAt first the 2 wasn't in character constant notation, but the if statement never worked. I printed %d of x and it came out 50. Why do I have to do this? getchar always returns an int, and I have never had this problem before?Code:int x; printf("1. Quit\n"); printf("2. Add number\n"); x=getchar(); if(x=='2'){



LinkBack URL
About LinkBacks


