A common error in many languages is accidentally omitting an equals sign where a comparison was intended. Example; void somefunc(int i) { if (i = 2) { // was supposed to be “(i == 2)” // … } else { // … } } What makes it easily missed is that it compiles and executes […]
Continue reading