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

Does c# provide copy constructor?

1079


List down the differences between public, static and void keywords?

917


What is an escape sequence? Name some string escape sequences in c#.

983


Name any three ways to pass parameters to a method in c#?

985


Is class reference type c#?

965


What does the parsefloat function do?

965


What is the data encapsulation?

937


What are the two kinds of properties in c#.

994


What are the types of parameters in c#?

1031


Explain a MSIL ? Why is it appreciated by all developers?

1182


Is list a collection c#?

1041


What is new method in c#?

975


What do you mean by jagged arrays in c#?

1004


What is difference between singleordefault and firstordefault?

968


What is serialization in unity?

956