I'm checking my code with different inputs. I have for example the next code:
if((scanf("%d",&n)!=1)) {
printf("Invalid number\n");
return 0;
}
if i'll try to scan a higher number of int
than allowed (for example: 10000000000), it won't print "Invalid number". I want it to print and end the program. what to do?