Monday, December 26, 2005

Assignment Operator '+='

I had a bug in my code today. After hours of debugging, I found out the silly mistake that I did. The compiler did not identify because it was semantically right. Instead of ‘+=’ I had typed ‘=+’. This silly typo gave me weird results and cost me a lot of time in debugging.

No comments: