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.

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum