Horje
increment and decrement operator Code Example
increment operator
i++ i-- ++i --i
increment and decrement operator
Increment Operators: The increment operator is used to increment the value of 
a variable in an expression. In the Pre-Increment, value is first incremented 
and then used inside the expression. Whereas in the Post-Increment, value is 
first used inside the expression and then incremented.

Decrement Operators: The decrement operator is used to decrement the value of 
a variable in an expression. In the Pre-Decrement, value is first decremented 
and then used inside the expression. Whereas in the Post-Decrement, value is 
first used inside the expression and then decremented.




C

Related
function of science writing of a number Code Example function of science writing of a number Code Example
C %s Code Example C %s Code Example
c logarithm check if number is base Code Example c logarithm check if number is base Code Example
npm fs zip Code Example npm fs zip Code Example
#include <iostream> using namespace std;  int main() { for(int i=3;i!=0; i--) { count<<i--<<" "; } } Code Example #include <iostream> using namespace std; int main() { for(int i=3;i!=0; i--) { count<<i--<<" "; } } Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9