Electronic Circuits - Electronic Tutorials - Electronic Hobby Projects - A Complete Electronic Resource Centre

C Language Programming Library Reference Guide

Products

Sitemap

Online
Calculators

Circuits (A-C)

Circuits (D-O)

Circuits (P-Z)

Tutorials


 
Google
 
Web Hobbyprojects.com

Operators - Postfix

Postfix operators are operators that are suffixed to an expression.
operand++;
This causes the value of the operand to be returned. After the result is obtained, the value of the operand is incremented by 1.
operand--;
This is the same but the value of the operand is decremented by 1.

Examples:

int joe=3;
joe++;
The value of joe is now 4.
printf("%i",joe++);
This outputs the number 4. The value of joe is now 5.

 

 

 

Search
Custom Search

<<<  Back to C Language Library Reference Guide

<<<  Back to Electronics Tutorials