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 the keyword struct is different from the keyword class in c++?

0 Answers  


What is a catch statement?

0 Answers  


What are the benefits of oop in c++?

0 Answers  


Explain the difference between c & c++?

0 Answers  


Difference between pointer to constant and constant pointer to a constant. Give example.

0 Answers   HAL,


class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable

1 Answers  


Explain Text Manipulation Routines?

0 Answers  


What is the equivalent of Pascal's Real a) unsigned int b) float c) char

0 Answers  


What is microsoft c++ redistributable 2013?

0 Answers  


Define a pointer to a data member of the type pointer to pointer?

0 Answers  


What are function prototypes?

0 Answers  


Are there any new intrinsic (built-in) data types?

1 Answers  


Categories