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 the difference between a mixin and inheritance?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
State what is encapsulation and friend function?
Why is static class not inherited?
What is the advantage of oop over procedural language?
Why interface is used?
2. Give the different notations for the class.\
c++ program to swap the objects of two different classes
What does enum stand for?
Advantage and disadvantage of routing in telecom sector
Can you inherit a private class?
Why multiple inheritance is not possible?
What is difference between abstraction and encapsulation?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What is encapsulation oop?