✏️ Explanatory Question

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

👁 5,269 Views
📘 Detailed Answer
💡

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.