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 |
What is reflection in c#?
What is continue in c#?
What is a .aspx file?
what is ment by Unboxing?
can a structure used in a class if yes then how.
How can I get around scope problems in a try/catch?
What is state c#?
What are the steps to create an assembly and add it to the gac?
Can we make a Static Constructor Parameterized? Give Reason with your answer
What is func delegate in c#?
How many destructors can a class have?
What is c# used for?