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 overloading in c#?

470


Explain how do you convert a value-type to a reference-type?

442


What is ioc containers c#?

442


When was .net linq added?

507


What is generic delegate in c#?

448






What is array and types of array in c#?

472


What is a multi line comment?

543


What are the types of access modifiers?

445


Is c# still popular?

480


Is a c# interface the same as a c++ abstract class?

557


What are accessors?

526


Is typeof c#?

526


What is executescalar in c#?

453


What is the difference between overriding and overloading in systemverilog?

450


Which is faster list or dictionary in c#?

562