What will i and j equal after the code below is executed? Explain your answer.
Answer Posted / hrpynux@gmail.com
After the above code executes, i will equal 6, but j will equal 5. Understanding the reason for this is fundamental to understanding how the unary increment ( ++ ) and decrement ( -- ) operators work in C++.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is c++ a software?
What is capacity in vector in c++?
What are the benefits of oop in c++?
Can we get the value of ios format flags?
What is the return value of the insertion operator?
Explain what are mutator methods in c++?
Why #include is used?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
List the special characteristics of constructor.
What is a class template?
Difference between class and structure.
When is the copy constructor called?
What is c++ 11 and c++ 14?
What is pair in c++?
Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?