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 |
inheritence with example
What is multilevel inheritance?
which is best institute to learn c,c++ in ameerpet hyderabad
write a program to find the largest of two numbers without using for,while,switch,if else, conditional operator and do while using c++ pgmng language
What are constructors in oop?
What are benefits of oop?
What is virtual function?where and when is it used?
Program to open a file with First argument
Can we create object of interface?
What is the real time example of inheritance?
what is function overloading..?
what is ns string? what is ns array?