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 |
How to create multi-dimensional array?
What?s the difference between an interface and abstract class?
What are different types of classes in c#?
What are virtual classes in c#?
What is difference between private, protected, and public in C#?
what are the files we need to deploay a project in the system?
What's the difference between an integer and int?
What you mean by inner exception in c#?
What is the difference between “finalize” and “finally” methods in c#?
What are the examples of data types?
Why do we need constructor in c#?
What are some of the commonly used commands in sqlcommand?