(Move to ...)
▼
Program to illustrate Associativity of Increment/Decrement Operator
# include <iostream.h>
int main( )
{
int x = 4, y = 9;
int z;
z = (x++) + (--y) + y ;
cout << "\n Value = " <<z;
z =(--x) + x + (y--) ;
cout << "\n Value = " <<z;
return 0;
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment