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
Can you have an array of arrays?
How can I access the registry from c# code?
What is object type in c#?
Can I use parseint?
What do u mean by delegation of authority?
What is console write in c#?
What is poco c#?
Explain the types of assemblies in .net?
What is assembly manifest?
Why generics are used in c#?
What is property in c#?
Is type nullable c#?
Can arraylist hold primitive types?
Is a char?
What is the use of flag in c#?