public void A() {
int x;
x = 8;
x *= 4 + 8 / 2;
}
Given the above code, what is the value of "x"?
Answer Posted / aspdev556
Sorry for the confusion, figured it out.
x = x * 4 + 8 / 2 only multiplies x by 4 not the whole
expression.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
How long does it take to learn c# programming?
What's c# ?
What is the use of list in c#?
What is ilist c#?
Can we extend static class in c#?
What is a .exe extension files? How is it similar to .dll extension files?
Is list ienumerable c#?
Define Virtual folder?
What is generic in c#?
Does c# support properties of array types?
What is mvc pattern in c#?
Is inheritance possible in c sharp?
What does ienumerable mean?
What does console mean c#?
Explain how to parse a datetime string?