Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
first a is evaluated and results in 2 after increment,since it is not 0 && proceeds with another variable to check if it is 0 which results in increment and since it is not 0 && condition returns True which satisfies the first expression for || and we don't need to check the other side of || so c is still 1
20th Sep 2020, 6:42 PM
Abhay
Abhay - avatar