Strangest language feature

Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. What is, in your opinion, the most surprising, weird, strange or really “WTF” language feature you have encountered? Please only one feature per answer. 320 s 320 In C, … Read more

What are bitwise shift (bit-shift) operators and how do they work?

I’ve been attempting to learn C in my spare time, and other languages (C#, Java, etc.) have the same concept (and often the same operators) … What I’m wondering is, at a core level, what does bit-shifting (<<, >>, >>>) do, what problems can it help solve, and what gotchas lurk around the bend? In … Read more