What will i and j equal after the code below is executed? Explain your answer.



What will i and j equal after the code below is executed? Explain your answer...

Answer / 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

More C++ General Interview Questions

what is the use of templates?

3 Answers  


What do you understand by zombie objects in c++?

0 Answers  


What is the difference between "calloc" and "malloc"?

9 Answers   ADP,


What is the best free c++ compiler for windows?

0 Answers  


What is c++ prototype?

0 Answers  






How do you clear a set in c++?

0 Answers  


What is encapsulation in c++?

0 Answers  


What are activex and ole?

0 Answers  


What is function overloading in C++?

0 Answers  


What can I use instead of namespace std?

0 Answers  


List the advantages of inheritance.

0 Answers  


iam a fresher to Qt(GUI a c++ based framework software). i need to develop the basic applications on designer by drag and dropping mechanism...so pls send me the procedure to design applications?

1 Answers  


Categories