DeMorgan’s law is a simple law that I learned at UPT during one of my hardware classes. While it is useful in hardware it, it is also useful when writing programs.
If you have a condition like not (A and B)
, you can rewrite it to !A or !B
.
|
|
DeMorgan’s law is a simple law that I learned at UPT during one of my hardware classes. While it is useful in hardware it, it is also useful when writing programs.
If you have a condition like not (A and B)
, you can rewrite it to !A or !B
.
|
|