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 a null tree?

1086


What is the difference between procedural programming and oops?

1071


Why it is called runtime polymorphism?

1061


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1877


What is coupling in oops?

1075


What is abstraction oop?

1039


What is difference between abstraction and encapsulation?

1023


What is object in oop?

1068


Is abstract thinking intelligence?

989


What are the three parts of a simple empty class?

1994


Whats is abstraction in oops?

1028


Where You Can Use Interface in your Project

1843


What are the 5 oop principles?

1076


What is object in oops?

1026


What is the importance of oop?

1043