ID:134156
 
I don't get why the order of operations is set up like it is. It seems to me that bitwise and mathematical operations should occur before comparison operations, but that's not the case. >, >=, <, and <= occur before << and >>, which then occur before == and !=, all of which occurs before &, |, and ^. Is there any particular reason it's set up this way?</<>
Popisfizzy wrote:
I don't get why the order of operations is set up like it is. It seems to me that bitwise and mathematical operations should occur before comparison operations, but that's not the case. >, >=, <, and <= occur before << and >>, which then occur before == and !=, all of which occurs before &, |, and ^. Is there any particular reason it's set up this way?
i think it is modeled after some other language