Hey everyone, I have a kind of large problem.
I am trying to input something in C, a number between 0 and 50,000, using scanf(). I understand how scanf generally works, and it does for the most part, but for some reason if the number I enter is greater than 37504, the program just stops. Doesn't freeze, doesn't crash, just stops. I have tried changing the data type from int, and have tried unsigned int and long int as well, any other suggestions about what's going on? Thanks!
Here's the pertinent part of code:
int main ()
{long int max;
printf("Enter an integer between 2 and 50,000: ");
scanf("%ld", &max);
etc.