Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is short circuit logical evaluation?

Answer Posted / amitabh dubey

Consider This
int x = 8;

if((x == 8) || (y == 12))

Since first expression (x == 8) evaluates to true and it is
seperated by || (or operator) by second expression in the
if statment, c# compiler will short-circuit the evaluation,
and the second statement will never be evaluated.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the difference between an integer and int?

985


What is yield in c#?

823


Explain About stateless and state full web service

926


What is .net console?

931


What is whitespace in c#?

1004


What is out int in c#?

837


What is string concatenation?

912


What do you mean by sealed classes and static classes?

920


How do I do implement a trace and assert?

935


Is c# and .net same?

813


Why do we use static methods in c#?

957


What is difference between internal and protected internal in c#?

854


What is difference between c sharp and c#?

840


What is dataset c#?

878


Can you inherit from multiple classes in c#?

828