mardi 16 février 2021

How if statements literally works?

I was wondering how an if statement or conditional statements works behind the scenes when executed.

Consider an example like this:

if (10 > 6) {
    // Some code
}

How does the compiler or interpreter knows that the number 10 is greater than 6 or 6 is less than 10?

Aucun commentaire:

Enregistrer un commentaire