What is short circuit logical evaluation?



What is short circuit logical evaluation?..

Answer / 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

More C Sharp Interview Questions

What is reflection in c#?

0 Answers  


What is continue in c#?

0 Answers  


What is a .aspx file?

0 Answers  


what is ment by Unboxing?

3 Answers  


can a structure used in a class if yes then how.

2 Answers   Synechron,






How can I get around scope problems in a try/catch?

0 Answers  


What is state c#?

0 Answers  


What are the steps to create an assembly and add it to the gac?

0 Answers  


Can we make a Static Constructor Parameterized? Give Reason with your answer

0 Answers  


What is func delegate in c#?

0 Answers  


How many destructors can a class have?

0 Answers  


What is c# used for?

0 Answers  


Categories