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 is the purpose of reserved word using in c#?
Can a child class call the constructor of a base class?
What's the difference between abstraction and encapsulation?
How is method overriding different from overloading?
What can I create with c#?
What is view state c#?
What do you use c# for?
How many types of variables are there in c#?
What is a generic c#?
Write down the c# syntax to catch an exception
What is difference between events and delegates?
For methods inside the interface why can’t you specify the accessibility modifier?
What problem does Delegate Solve?
How do I do implement a trace?
Is array a collection c#?