views:

77

answers:

1

What is compiler flagging for numbers in C#? What is the advantage of this work? I can't understand this concept.

+1  A: 

There is a compiler flag /checked. It deals with numeric over and under flows.

Using it will cause a value outside the range of the data type to cause a run-time exception.

Oded