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

How size of a class can be calulated?

2 Answers  


How much is c++ certification?

0 Answers  


Why would you use pointers in c++?

0 Answers  


Differentiate between an external iterator and an internal iterator?

0 Answers  


What is volatile and pragma? When they are used?

1 Answers  






What is a storage class used in c++?

0 Answers  


Why do we need constructors in c++?

0 Answers  


In a function declaration, what does extern mean?

0 Answers  


What is vector processing?

0 Answers  


Which coding certification is best?

0 Answers  


Write a program to show polymorphism in C++?

0 Answers   Impetus, Verifone,


Should you pass exceptions by value or by reference?

0 Answers  


Categories