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 a static in c#?
Does c# support templates?
What is int32?
What is difference between encapsulation and abstraction in c#?
What is the wildcard character in SQL? Let?s say you want to query database with LIKE for all employees whose name starts with La.
in object oriented programming, how would you describe encapsulation?
What are logical operators in c#?
Does c# support multiple class inheritance?
What is datatable and dataset in c#?
How do I run a cshtml file?
How is a string immutable?
What is thread safe in c#?