class Divide
{
public:
float divident, divisor;
Divide():divident(10.0f),divisor(0.0f){}
};
int main()
{
Divide obj[100];
int quotient = obj[1].divident/obj[1].divisor;
return quotient;
}
Edit: Compiler Qt 5.3.1 , Windows 7-32 bit.
Why is there no division by zero warning at compile time or a run time crash happening?