Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Tuesday, March 10, 2015

What is increment and decrement operators ?

The increment and decrement operators are used to increase and decrease the value of the operand. The increment operator increase the value by 1 and the decrement operator decrease the value by 1 of a variable.
They are the unary operators which are operated only one variable.
The list of increment and decrement operators is as follows:
Operator
Definitions
++
Increase value by 1, ++a, a++
--
Decrease value by 1, --a, a--



No comments:

Post a Comment