|
From: Per W. <pw...@ia...> - 2004-08-24 07:22:19
|
Any good C/C++ book should describe operator precedence. Addition is evaluated from left to right, i.e. as: a =3D ((b+c)+d); Assignment is evaluated right to left, i.e. as: a=3D(c=3Dd); /Per W On Mon, 23 Aug 2004, Noorez Kassam wrote: > I am confused with chaining operators. > > if i had something like this > > int a,b,c,d; > a =3D b+c+d which two parts are done first and to where is that value ret= ured > for the second part. > > and also this > > a=3Dc=3Dd; > > how does that work... > > _________________________________________________________________ > Designer Mail isn't just fun to send, it's fun to receive. Use special > stationery, fonts and colors. > http://join.msn.com/?pgmarket=3Den-ca&page=3Dbyoa/prem&xAPID=3D1994&DI=3D= 1034&SU=3Dhttp://hotmail.com/enca&HL=3DMarket_MSNIS_Taglines > Start enjoying all the benefits of MSN=AE Premium right now and get the > first two months FREE*. > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |