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
What does executescalar return in c#?
What is sqlcommandbuilder c#?
What is the use of console readline () in c#?
Suppose two interfaces have same method, so how will you implement these methods in derive class?
What is expression tree with example?
What is this keyword in C#?
What is Implementation inheritance
Can you have parameters for static constructors?
How to sign an assembly with strong name?
What is lastindexof c#?
Why do we need collections in c#?
What is data binding with example?
Is c sharp free?
What is ienumerable <> in c#?
What is bit in c#?