Use of Checked and UnChecked operators?

Answer Posted / hridya

In a checked context, if the operation is a constant
expression a compile-time error occurs. Otherwise, when the
operation is performed at run-time, a
System.OverflowException is thrown.

In an unchecked context, the result is truncated by
discarding any high-order bits that do not fit in the
destination type.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the parts of assembly.

606


What does private void mean in c#?

638


What is AutoMapper in C#?

662


What is option parameter in C#?

627


How do you name a variable in c#?

594






What is this keyword in C#?

660


What is Implementation inheritance

601


Can you create sealed abstract class in c#?

561


How do you prevent a method from being overridden in c#?

555


What is the compiler of c#?

589


What is the difference between throw and throw ex?

545


What is action c#?

573


Name the method of servicebase class?

619


What is the use of readkey in c#?

599


Give an example of a ctype.

638