4 ms·
Show HN: A game for learning C operator precedence
- wruza 4y agoI believe this game is NSFW for most C jobs out there. Also: a <= b <= -c (a <= b) <= -c Invalid answer. <= has LTR associativity, what’s wrong? (Apparently it requires “… (-c)”, my bad).
- mmastrac 4y agoI think this is a cool idea, but I wonder if it might be more effective to learn which parenthesis you can remove. I wasn't entirely clear on how many I should be adding and had to look at the console to figure out why it wasn't accepted.
- edflsafoiewq 4y agoI'd rather give it the expression and it gives me the parenthesized form. I've always thought << and >> should have precedence close to * and /, since they just multiply and divide by powers of two.
- deleted 4y ago[deleted]