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 collection of classes in c#?

717


Is array ienumerable c#?

657


What is a c# delegate?

787


Explain nullable types in c#?

710


What is the xml document structure?

672


What is yield in c#?

654


How to achieve polymorphism in c#?

722


What is verbatim string literal in c#?

651


Why dataset is used in c#?

715


What is the wildcard character in sql?

706


What is asp net in c#?

706


If I have more than one version of one assemblies, then how'll I use old version (how/where to specify version number?)in my application?

696


Why dictionary is faster than list?

741


What is the difference between static class and sealed class in c#?

670


What is static classes?

674