Moderator note: Please resist the urge to edit the code or remove this notice. The pattern of whitespace may be part of the question and therefore should not be tampered with unnecessarily. If you are in the “whitespace is insignificant” camp, you should be able to accept the code as is.
Is it ever possible that
(a== 1 && a ==2 && a==3) could evaluate to
This is an interview question asked by a major tech company. It happened two weeks back, but I’m still trying to find the answer. I know we never write such code in our day-to-day job, but I’m curious.