✏️ Explanatory Question

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

👁 12,327 Views
📘 Detailed Answer
💡

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.