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


Please Help Members By Posting Answers For Below Questions

what is a reference variable in C++?

671


What is a map in c++?

588


What is a tree in c++?

565


What are stacks? Give an example where they are useful.

594


List down the guideline that should be followed while using friend function.

649






Explain polymorphism?

586


Which software is best for c++ programming?

582


What are abstract data types in c++?

540


What is the purpose of extern storage specifier?

631


What is std :: endl?

596


What does asterisk mean in c++?

588


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

641


What is the difference between reference and pointer?

615


What is the best way to take screenshots of a window with c++ in windows?

575


What is the purpose of the "delete" operator?

625