public void A() {
int x;
x = 8;
x *= 4 + 8 / 2;
}
Given the above code, what is the value of "x"?
Answer Posted / aspdev556
64.
Although if you place the same thing like:
x = x * 4 + 8 / 2;
this yields 36 which was my first guess.
How come its producing two different results? Aren't the
assignment statements suppose to get the same result?
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What are native methods?
Why do canadians say zed?
Why var is used in c#?
What is binding in c#?
What is the data provider name to connect to access database?
What is alias in c#?
Why do we need generics in c#?
What type is string in c#?
What is private class in c#?
Name the connections does microsoft sql server support?
What is strong data type in c#?
Is array passed by reference in c#?
Why do we need interface in c#?
Define sealed classes in c#?
Explain About remoting and web services. Difference between them