B
Buzz Lightyear
Hi, guys,
If I got a expression
int a,b,c,d;
a & (~b + 1) ^ ( ! c * 5 - 10 ) | d;
You see this expression combined with boolean logic and arithmetic
algebra oepration.
How do I simplify this expression and get its value with my pencil,
but not C++ compiler?
It seems very mysterious to me...
Although I checked some Boolean logic reference, but they all focus on
*pure* Boolean logic, but not consider other arithmetic factors, for
example a^(b | c) ^ d = (a ^b^d) | (a^c^d) ...
Thanks!
If I got a expression
int a,b,c,d;
a & (~b + 1) ^ ( ! c * 5 - 10 ) | d;
You see this expression combined with boolean logic and arithmetic
algebra oepration.
How do I simplify this expression and get its value with my pencil,
but not C++ compiler?
It seems very mysterious to me...
Although I checked some Boolean logic reference, but they all focus on
*pure* Boolean logic, but not consider other arithmetic factors, for
example a^(b | c) ^ d = (a ^b^d) | (a^c^d) ...
Thanks!