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

Define the term immutable ?

1033


What is the difference between function and method in c#?

883


Difference between value and reference type.

903


Why do we use static class in c#?

900


What is the difference between interface and inheritance in c#?

879


What does void mean in c#?

947


What is delegates and events?

907


What is asax file in c#?

930


How to implement an object pool in c#.net.

1033


What does get set mean in c#?

901


What is difference between constants and readonly in c#?

1017


Can we call server-side code (c# or vb.net code) from javascript?

925


Is char * null terminated?

915


Is a char?

856


What is a strong name in c#?

1372