I have recently come upon this question which surprisingly has more upvotes than downvotes.
It seems that the OP could have been expected at the very least to run their code through the compiler and describe a desired behavior before posting such a question, but there are 6 answers on that question.
How do others feel about such questions on SO?