MCQs>IT & Programming>C#>What would be the results of the following expressions if zero is an int and contains the value 0? int x = 100 / zero; int y = unchecked (100 / zero);
C# MCQs
What would be the results of the following expressions if zero is an int and contains the value 0? int x = 100 / zero; int y = unchecked (100 / zero);
Answer
Correct Answer: Both expressions will throw DivideByZeroException
Explanation:
Note: This Question is unanswered, help us to find answer for this one