Hacker News new | past | comments | ask | show | jobs | submit login

I observed this when I was back in school using a simpler expression i = 0; i = i++;

the answer will be different in different compilers. I use this as an interview question ever since, not to get the right answer but to understand the candidates thought process in solving the problem and his/her understanding of operator precedence :-)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: