if with multiple conditions, order of execution
- by markus
Hi,
In an if statement with multiple conditions is second executed if the outcome is clear after checking the first condition?
example:
if(i>0 && array[i]==0){
}
If I swap the conditions a seg fault may occur for negative values of i but this way the memory debugger doesn't find a problem. Can I be sure that this works always or do have have to use nested if statements?