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

What is the difference between Singleton design pattern and Factory design pattern?

549


What is windows application in c#?

467


How to implement singleton design pattern in c#?

467


What is interface inheritance?

529


Is datetime value type c#?

477






What is the difference between System.console.WriteLine() and System.console.Write() function?example?

573


Is as keyword in c#?

513


What is a dynamic assembly?

519


What is concatenation and when should it be used?

471


Explain about Destructor method?

536


Explain About stateless and state full web service

564


What is activator c#?

476


Is it possible to inherit multiple interfaces?

539


Differentiate between dataset and datareader?

521


In a site to turn off cookies for one page which method is followed?

502