I would like to now what are (in theory) the differences between using
if (a == x && b == y)
and
if (a == x){
if (b == y){
}
}
Edit : My question is not about the result but more about the performances. I find out that sort a table then search something into it is more efficient that do a research directly. I would like to know if there is a same thing with this, or if the compiler just replace the 'and' by another if
Thank you