Question: In C + + , the + + i and i + + notations both increment the variable i . What is the key difference

In C++, the ++i and i++ notations both increment the variable i. What is the key difference between them?
++i increments before the current value is used
++i increments after the current value is used
There is no difference; they are interchangeable
i++ increments by a larger value
 In C++, the ++i and i++ notations both increment the variable

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!