C program which demonstrates the working of increment(++) and decrement(–) operators. Increment operator ++ adds 1 to its operand and Decrement operator — subtracts 1 from its operand.
These operators may be used either as a prefix operator or post-fix operator. Read more here: Increment and decrement operators
The Program
[gist id=”edcbcb339781cb831a2143821b0f32ce”]
Sample Output

Related programs
Airthmatic Operators
You can easily select the code by double clicking on the code area above.
To get regular updates on new C programs, you can Follow @c_program
You can discuss these programs on our Facebook Page.
Like to get updates right inside your feed reader? Grab our feed!
(c) www.c-program-example.com
2 comments on “C Program to Demonstrate the increment and decrement operators”
Awesome
Thanks Ashfa 🙂