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

C Programming Language >   Operators and Enums in C Language >   Assignment Operators in C  

Short Question

5374


Answer:

  • 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.


This Particular section is dedicated to Question & Answer only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.