public void A() {
int x;
x = 8;
x *= 4 + 8 / 2;
}
Given the above code, what is the value of "x"?
Answer Posted / chandusrit
x*=4+8/2 =====> x=x*(4+8/2)
This is correct and the answer is 64
| Is This Answer Correct ? | 14 Yes | 3 No |
Post New Answer View All Answers
What do you mean by saying a "class is a reference type"?
What is an example of delegation?
What is a nullreferenceexception and how do I fix it?
Which is faster dictionary or hashtable?
How do you prevent a method from being overridden in c#?
Explain how obfuscator works in .net
What is nullable types in c#?
Can you create partial delegates and enumerations?
What is cosole application?
What is difference between hashtable and dictionary in c#?
Explain the difference between proc. Sent by val and by sub?
Can we make a Static Constructor Parameterized? Give Reason with your answer
What is a scope in c#?
Why do we use threads in c#?
When should we use delegates in c#?