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?



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

Answer / 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

More OOPS Interview Questions

inheritence with example

1 Answers  


What is multilevel inheritance?

0 Answers  


which is best institute to learn c,c++ in ameerpet hyderabad

1 Answers  


write a program to find the largest of two numbers without using for,while,switch,if else, conditional operator and do while using c++ pgmng language

3 Answers   Satyam,


What are constructors in oop?

0 Answers  


What are benefits of oop?

0 Answers  


What is virtual function?where and when is it used?

2 Answers   Sitel,


Program to open a file with First argument

1 Answers   TCS,


Can we create object of interface?

0 Answers  


What is the real time example of inheritance?

0 Answers  


what is function overloading..?

4 Answers  


what is ns string? what is ns array?

1 Answers  


Categories