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 |
what are three tenets of object orinted Systems?Why they call like that ? Please answer me. Advance thanks.
Can we define a class within the interface?
What is class in oop with example?
where is memory for struct allocated? where is memory for class-object allocated? I replied for struct in stack and for class-object in heap. THen he asked if class has struct member variable what happens.class on heap and what about struct in that class? couldnt ans :( :-?
What is object in oops?
What is the difference between class and structure?
Generally, in all C++ programs, texts are in white colour. Can we change the colour of the text(either input or output or both)? If so, help me out.
What is oops concept with example?
Can we have inheritance without polymorphism?
write a program for function overloading?
14 Answers HCL, InfoCity, TATA,
When is it necessary to use member-wise initialization list in C++?
write a program to find 2^n+1 ?