+ 9
C logical AND & OR operator
Why when i use && operator value of z doesnât change and when i use || operator change ?!! https://code.sololearn.com/cqG82HfrYSY7/?ref=app
2 Answers
+ 4
The expression after the && operator is not evaluated, because the first argument equals zero. â 0 && anythingâ is always false, so there is no need to calculate z++, so z remains 5.
+ 4
thank u đșđș