If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?
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 |
How do you define social class?
What is the significance of classes in oop?
What is the Advantage of Interface over the Inheritance in OOPS?
Which is the only operator in C++ which can be overloaded but NOT inherited?
What is the benefit of oop?
What is abstrac class?where is it use?
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.
what is the difference between function template and template of function?explain with example.
Is data hiding and abstraction same?
What is destructor oops?
create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.
2 Answers CTS, Delhi University,
What is friend function?