Chapter 3 - Controlling the Flow, Converting Types, and Handling Exceptions
- Where would you look for help about a C# keyword?
- Where would you look for solutions to common programming problems?
- What happens when you divide an
int
variable by 0?- A
DivideByZeroException
is thrown when dividing an integer or decimal.
- A
- What happens when you divide a
double
variable by0
?- The
double
contains a special value ofInfinity
. Instances of floating-point numbers can have special values--NaN
(not a number),PositiveInfinity
, andNegativeInfinity
.
- The
- What happens when you overflow an
int
variable, that is, set it to a value beyond its range?- It will loop unless you ...
Get C# 7 and .NET Core: Modern Cross-Platform Development - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.