I compiled this program under MinGW compiler and Borland C++ 5.5 command line compiler.Code:int main()
{
printf("1/0 = %d",1/0);
}
Both give warning about division by zero. But when the program is run
The one compiled by gcc breaks and the one compiled by Borland gives output as 1.
I don't understand this behavior.