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

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

Is c# lazy thread safe?

910


What is string pool in c#?

1019


What is the difference between an integer and int?

925


Explain how can you clean up objects holding resources from within the code?

935


What are the fundamental oop concepts?

958


What are the return types in c#?

969


What is the meaning of console writeline in c#?

875


Is overriding of a function possible in the same class?

958


what optimizations does the c# compiler perform when you use the /optimize+ compiler option?

1063


What are generations and how are they used by the garbage collector?

924


Can we inherit class that contains only one private constructor?

963


What is a void c#?

924


Can you specify nested classes as partial classes?

987


What is the difference between finalize() and dispose() methods?

1002


Explain code compilation in c#.

971