Home / Questions / What is the difference between pre increment operator and post increment operator?
Explanatory Question

What is the difference between pre increment operator and post increment operator?

👁 12,327 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

  • Pre increment operator is used to increment variable value by 1 before assigning the value to the variable.
  • Post increment operator is used to increment variable value by 1 after assigning the value to the variable.