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...

If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

Answer Posted / padmas

The above line of the code gets executed using the C++ program, the output will give 10 as value of b at the prompt. It will process the b+=(5%7*2), as b values is already given as 6 then it will add, to the assigned value to the result got from the expression. if properly syntaxes and executed the program.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data binding in oops?

1155


What is abstraction in oop with example?

1194


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

2245


Why is object oriented programming so hard?

1134


Can you inherit a private class?

1144


State what is encapsulation and friend function?

1348


What are the benefits of interface?

1121


What is a class and object?

1112


how to get the oracle certification? send me the answer

2212


what type of questions

2179


Can an interface inherit a class?

1112


Get me a number puzzle game-program

2318


What is multilevel inheritance explain with example?

1205


What is the difference between abstraction and polymorphism?

1159


What is abstraction oop?

1149