Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

Increment & Decrement Operator in C language

int x;
int y;

x = 1;

y = ++x;      // value of x = 2, y = 2
y = x++;     // value of x = 3, y = 2

x = 3;

y = x--;      //value of x =2,y =3;
y = --x;      //value of x 1, y= 1;
Source by techtechinfo.com #
 
PREVIOUS NEXT
Tagged: #Increment #Decrement #Operator #C #language
ADD COMMENT
Topic
Name
9+3 =