Programming Example
Example of Increment and Decrement operator in cprogramming langauage
Imagine you have operation as below
num = num + 1;
you can simply this syntax use ++.
num++;
using the same approach for this case
num = num - 1;
you can use — syntax.
num--;
Now how to implement them in code. Let’s write this code.