2 ms·
The questions are a bit cute, but they’re not testing obscure corner cases of the language. It’s not like asking if you have the trigraphs memorized. It’s testi
by rayiner 7y ago
The questions are a bit cute, but they’re not testing obscure corner cases of the language. It’s not like asking if you have the trigraphs memorized. It’s testing fundamental rules about how C works: overflow, integer promotion, order of operations, memory layout, etc.
- viraptor 7y agoThey're all obscure in a "I wouldn't write code like that or let it go through review" sense. They're very synthetic cases.
- rayiner 7y agoBut would you write code that adds integers of two different types?Then you need to know the integer promotion rules. And this is just us just a way of testing that.