Increment Operator:
There are two types of increment operator.
(i) Pre-increment (ii) Post-increment
(i) Pre-increment:
Pre-increment mean first increase and than output.
For example ++num
(ii) Post-increment:
Post-increment mean first output and than increase a number.
For example num++
Decrement Operator:
There are also two types of decrement operator.
(i) Pre-decrement (ii) Post-decrement
(i) Pre-decrement:
Pre-decrement mean first decrease and than output.
For example --num
(ii) Post-decrement:
Post-decrement mean first output and than decrease a number.
For example num--
For example num--
0 Comments