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

Is python written in c or c++?

0 Answers  


How does list r; differs from list r();?

0 Answers  


Why do we use classes in programming?

0 Answers  


Is dev c++ a good compiler?

0 Answers  


What are smart pointer? Whats its use?

1 Answers   CTS,






What is the difference between global int and static int declaration?

0 Answers  


implement stack using stack.h headerfile functions

1 Answers   Exilant, GMG, Subex, University,


an integer constant must have atleast one a) character b) digit c) decimal point

0 Answers  


What do you mean by friend class & friend function in c++?

0 Answers  


If dog is a friend of boy, is boy a friend of dog?

0 Answers  


Why c++ is called oop?

0 Answers  


What is fixed in c++?

0 Answers  


Categories