What is the diffrent between A and B ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

What is the diffrent between A and B ?

A : int x =10; if (Ɨ > 5 && x < 15) { cout << "yes"; } else { cout << "no"; } B: int x =10; if (x > 5 ) { if (x < 15) { cout << "yes"; } } else { cout << "no"; }

22nd May 2018, 2:22 PM
Mohammad Alshareef
Mohammad Alshareef - avatar
1 Resposta
+ 5
It can result in different machine code, but the operational behaviour stays the same.
22nd May 2018, 2:35 PM
Timon PaƟlick