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 is a dynamic assembly?
Is array reference type in c#?
What is variable and its classification?
What is a hashset c#?
Is c# difficult to learn?
What are sorted lists?
What is the relationship between a process, application domain, and application?
Can a child class call the constructor of a base class?
Is lazy thread safe c#?
What are the drawbacks of extending an interface as opposed to extending a class?
Is comparable a functional interface?
What is console application with example?
What is the difference between convert and parse in c#?
Why is c# a good programming language?
Give an example of a directcast.