I have written the following code. Any combination of numbers less than 50000 and 60000 gives the correct answer, but for some reason I always get -1294967296 when I use 50000 and 60000. Can anyone tell me why this is?
#include <stdio.h>
int main()
{
int a = 50000;
int b = 60000;
int c = a * b;
printf("The product of a and b is %d",c);
return 0;
}