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
What is data binding in oops?
What is abstraction in oop with example?
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.
Why is object oriented programming so hard?
Can you inherit a private class?
State what is encapsulation and friend function?
What are the benefits of interface?
What is a class and object?
how to get the oracle certification? send me the answer
what type of questions
Can an interface inherit a class?
Get me a number puzzle game-program
What is multilevel inheritance explain with example?
What is the difference between abstraction and polymorphism?
What is abstraction oop?