- (++) pre-increment (++m) increment m by 1, then the new value of m in the expression in which m resides.
- (++) post-inctement (m++) use the current of m in the expression in which m resides, then increment m by 1.
- (--) pre-decrement (--n) decrement n by 1, then use the new value of n in the expression in which n resides.
- (--) post-decrement (--n) use the current value of n in the expression in which n resides, then decrement n by 1.
main( )
{
in + result, a,b, m, n, p, q, x, y,
result=0;
a=6;
b=7;
m=8;
n=9;
p=3;
q=2;
x=4;
y=5;
result=++a+--b*4<++m*--n+4//p+++q--*4>x++*y--+4;
cout<<"inresult"<<result;
return0;
{
output result
=(1+6)+(7-1)*4<(1+8)*(9-1)+4 // 3+(2*4)>4*5+4
=7+24<72+4 // 3+8>20+4
=31<76 // 11>24
=true(1) true(1) false(0)
akhirnye setelah bnyk chapter yg kupelajari chapter ni yg paling ku fahami...
hehehe...
harap2 chapter seterusnye lebih senang la...