What the process going on to printing the value 1 . Not(not x or not y and x or not y) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What the process going on to printing the value 1 . Not(not x or not y and x or not y)

bool x= false; bool y=true; bool c =!(! x || !y && x || !y); cout<<c;

16th Sep 2020, 12:05 PM
Suparna Podder
Suparna Podder - avatar
1 Answer
+ 1
Your code will give Output false (0) bool x= false; bool y=true; Here !x means true and !y means false bool c =!(! x || !y && x || !y); bool c=!(true||false&&false||false) bool c=!(true||false ||false) c= true||false ||false this will give result but there is not before bracket so true will be false cout<<c;
16th Sep 2020, 12:27 PM
A S Raghuvanshi
A S Raghuvanshi - avatar