Answers for "Increment & Decrement Operator in C language"

C
0

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;
Posted by: Guest on January-08-2022

Code answers related to "C"

Browse Popular Code Answers by Language