I ran across a question on Quora: What's the easiest programming bug you spent way too much time trying to solve?.
Here is my answer to that question. Some time during my first few years of programming, I wrote code similar to this little snippet and expected it to print …