Use of Checked and UnChecked operators?

Answer Posted / jackir

when value of a datatype excided its limitaion then its
call overflow to avoid this problem we use ckecked and
unchecked
syntax
return unchecked(x+y);
return checked(x+y);

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between properties and indexer in c#?

440


What is generic delegate in c#?

463


You are creating a custom usercontrol, some of the newly created properties are shown in the properties window. How you can hide a new property named theme from the properties window?

505


Why main is static in c#?

531


Why do we need private constructor in c#?

469






What is Asynchronous call and how it can be implemented using delegates?

574


How do you type a null character?

506


How do you clear a list in c#?

501


Define clr in .net?

569


What is the usage of OLE?

588


Is comparable a functional interface?

507


Can struct have constructor c#?

507


What is parameterized constructor?

511


What is default boolean value in c#?

489


What is boxing in c#?

556