Skip to main content
1 of 2
user avatar
user avatar

What is going on here? C++ madness

I'm sorry, but I have to ask what the hell is going on here Why does this if-statement combining assignment and an equality check return true? - not an interesting question, a correct but not brilliant top-voted answer, but the up-voting here seems to me to be nonsensical. Are there really so many C++ programmers that think the question and the answer (both pretty straightforward for anyone that knows a bit of c++) deserve these upvotes?

This has nothing to do with up or downvotes on my own answer - it just seems bizarre to me.

user2100815