Explain the difference between prefix and postfix increment
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:4| Question number:4.17
All Answers
total answers (1)
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:4| Question number:4.17
total answers (1)
The prefix increment operator increases the operand and return the operand itself as an lvalue.
The postfix increment operator increases the operand and return a copy of the operand's original value as an rvalue.