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
What's the difference between an integer and int?
What is yield in c#?
Explain About stateless and state full web service
What is .net console?
What is whitespace in c#?
What is out int in c#?
What is string concatenation?
What do you mean by sealed classes and static classes?
How do I do implement a trace and assert?
Is c# and .net same?
Why do we use static methods in c#?
What is difference between internal and protected internal in c#?
What is difference between c sharp and c#?
What is dataset c#?
Can you inherit from multiple classes in c#?