Admittedly, I may be at fault here. I believe ANSI-C evaluates operators with the same precedence from left to right. So it is supposed to multiply before divide. But I always tell the students to be safe and add parenthesis to make sure. And I broke my own advice. Regardless, I do think it is an ANSI-C compliance bug, although I can work around it with the extra pair of parenthesis.
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum