What is the importance of post increment and pre increment in C++?

166 views

What is the importance of post increment and pre increment in C++?

In: 7

7 Answers

Anonymous 0 Comments

It really only matter when doing function calls

So
‘ function(c++) ‘
Will get the value of c before it is incremented
And
‘ function(++c) ‘
Will get the value of c after it is incremented

You are viewing 1 out of 7 answers, click here to view all answers.