What type of exception would be thrown if the following arithmetic were performed? double aValue = 0,
Question:
What type of exception would be thrown if the following arithmetic were performed?
double aValue = 0, bValue = 0;
int result = (int) aValue / (int) bValue;
a. System.FormatException
b. System.Invalid.CastException
c. System.ArgumentException
d. System.DivideByZeroException
e. none of the above
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
C# Programming From Problem Analysis To Program Design
ISBN: 9781285096261
4th Edition
Authors: Barbara Doyle
Question Posted: