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


Please Help Members By Posting Answers For Below Questions

What are reflections in c#?

489


Why should I use interface in c#?

489


Explain the difference between proc. Sent by val and by sub?

474


What are "class access modifiers" in C#?

536


What's the difference between WindowsDefaultLocation and WindowsDefaultBounds?

601






What are the 3 logical operators?

556


Explain the difference between a sub and a function in c#.

528


Explain About DTS package

574


Define interface class in c#?

513


How can we sort the elements of the array in descending order?

528


How do I trim a space in c#?

435


What is the difference between dataset and datatable in c#?

542


What is tpl in c#?

495


What is a Jagged Array in C#?

546


Is c# a backend language?

565