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

How do I download c++?

571


What is lambda in c++?

575


If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3

837


Which programming language is best to learn first?

585


What is abstraction in c++?

679






Define linked lists with the help of an example.

554


What do manipulators do?

570


What is tellg () in c++?

720


What is Destructor in C++?

637


What is the difference between while and do while loop?

556


How would you use the functions randomize() and random()?

627


What is the difference between *p++ and (*p)++ ?

780


What is the use of default constructor?

569


How do you initialize a string in c++?

558


write a porgram in c++ that reads an integer and print the biggest digit in the number

1769