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

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

👁 5,268 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 decrement operator is used to decrement variable value by 1 before assigning the value to the variable.
  • Post decrement operator is used to decrement variable value by 1 after assigning the value to the variable.