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

How compiler selects(internally) required overridden function in inheritance?

2 Answers   CSC, Infinite Computer Solutions,


Name an advantage of linked list over array?

11 Answers   IBM, Infosys,


What is difference between class and object with example?

1 Answers  


What is multiple inheritance? Give Example

6 Answers   Mind Tree,


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

0 Answers  


How many human genes are polymorphic?

0 Answers  


What is encapsulation?

17 Answers   TCS,


Name an advantage of array over linked list?

24 Answers   GML, IBM, Software Solutions,


What is polymorphism and example?

0 Answers  


What is the use of fflush(stdin) in c++?

4 Answers   HCL,


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?

0 Answers  


what is function over loading?

5 Answers  


Categories