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
Define delegation in .net?
What is the difference between malloc () and new?
What is the difference between list and array in c#?
What is difference between constants and read-only?
Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?
What is the difference between struct and class in c#?
Explain the working of serialization?
How does c# achieve polymorphism?
Does c# support parameterized properties?
What namespace is list in c#?
When do you generally use a class over a struct?
What is asax file in c#?
What is xml serialization in c#?
What is a variable in c#?
Are c# destructors the same as c++ destructors?