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 are reflections in c#?
Why should I use interface in c#?
Explain the difference between proc. Sent by val and by sub?
What are "class access modifiers" in C#?
What's the difference between WindowsDefaultLocation and WindowsDefaultBounds?
What are the 3 logical operators?
Explain the difference between a sub and a function in c#.
Explain About DTS package
Define interface class in c#?
How can we sort the elements of the array in descending order?
How do I trim a space in c#?
What is the difference between dataset and datatable in c#?
What is tpl in c#?
What is a Jagged Array in C#?
Is c# a backend language?