Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

public void A() {
int x;
x = 8;
x *= 4 + 8 / 2;
}
Given the above code, what is the value of "x"?

Answer Posted / aspdev556

64.
Although if you place the same thing like:
x = x * 4 + 8 / 2;
this yields 36 which was my first guess.
How come its producing two different results? Aren't the
assignment statements suppose to get the same result?

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Co- and Contra-Variance in C#?

1028


What is console read in c#?

960


What is the difference between ienumerable and icollection?

995


What is hashtable c#?

931


What is this keyword in C#?

1033


list the steps in code compilation in c#?

921


What are managed providers?

1062


How Do You Convert A Value-type To A Reference-type?

1001


What is multithreading? What are the problems that comes with multithreading and how to manage them?

1029


What is marshalling and what are different kinds of marshalling?

970


Do we get an error while executing the “finally” block in c#?

996


Explain how do you directly call a native function exported from a dll?

969


What is the difference between the debug class and trace class? Documentation looks the same.

1276


What's the difference between abstraction and encapsulation?

941


What is the use of delegate?

1020