0

Explain line by line please what does "evaluate" mean? , '!' , '&' and the true or fasle question! ?!?!??!?!

evaluate (a= =!b)&&a , if a is a true or fasle !!!!!!!!!

22nd Jan 2017, 3:51 PM
Amr Monsef
Amr Monsef - avatar
2 odpowiedzi
0
lol brother it is a question which says solve this logical expression and deduce answer. ok now the question is how to solve the above expression. brackets have highest precedence in operators so first we solve the expression inside the bracket in your case ( a == !b) then the rest expression. if you really want to learn this please read logical operators section of C + + course
22nd Jan 2017, 4:10 PM
Keshave Jat
Keshave Jat - avatar
0
1. replace values (true ==! false) && true 2. evaluate what's in the brackets. (true ==! false) (true == true) // not false (true) // yes, true does equal true. both sides are equal 3. now we have true && true // both conditions are true, so 4. true
22nd Jan 2017, 5:41 PM
Stefan Ellis
Stefan Ellis - avatar