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 |
c++ provides classes...and classes do what we want but why then strcut are used...if we say data hiding... it is also provided by c++ in structs then why to prefer clasess
What is a class oop?
What is the purpose of enum?
what is main difference between object oriented object base
Why is static class not inherited?
Can destructor be overloaded?
What do you mean by pure virtual functions?
Can we override main method?
How would you stop a class from class from being derived or inherited.
What are the 4 main oop principles?
what is the new version of c++
1 Answers Ignou, Pramata, Satyam,
What is operator overloading? Give Example
11 Answers CTS, IBM, TCS,