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 are namespaces, and how they are used?
What is verbatim string literal in c#?
what is the syntax to inherit from a class in c#?
What is boxing? Explain its functionality?
What do you mean by for each loop?
Explain how do I convert a string to an int in c#?
Can you inherit multiple classes in c#?
What is Web.config?
Is null empty or whitespace c#?
What are examples of desktop applications?
Can delegates be used as callbacks?
Write a program to find the angle between the hours and minutes in a clock
What is literal control
Distinguish between array and arraylist in c#?
Is and as keyword in c# net?