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

Given two strings like x=?hello? and y=?open?, remove any character from string x which is also used in string y, thus making the result x=?hll?.

13 Answers   IBM,


What is R T T I ?

6 Answers   Ness Technologies,


what type of question are asked in thoughtworks pair programming round ?

0 Answers   Thought Works,


what is meant by files?

4 Answers   Infosys,


What do we mean by a hidden argument in C++?

1 Answers  


What do you mean by multiple inheritance and multilevel inheritance? Differentiate between them.

2 Answers  


Can we have a private virtual method ?

8 Answers   Ness Technologies,


A file pointer always contains the __________ of the file

5 Answers  


any one please tell me the purpose of operator overloading

0 Answers   Amazon,


Why static functions always uses static variables?

3 Answers  


What is a macro? And how is a macro same as a template?

4 Answers  


WHAT IS THE DIFFERENCE BETWEEN OBJECT BASED & OBJECT ORIENTD PROGRAMMING LANGUAGE.(GIVE AT LIST 4 PIONT)

1 Answers   TCS,


Categories