2

A friend of mine has shown sometime ago the name of the below boolean technique/law but I forget that name unfortunately. Does someone know what it's called?

example in C language:

!(a || b) 

It's a short to:

!a && !b 
3
  • Did you mean to say !a && !b? Commented Aug 3, 2014 at 18:25
  • yes, edited. I'm sorry. Commented Aug 3, 2014 at 18:27
  • In this case, the first is longer. Commented Aug 3, 2014 at 21:04

1 Answer 1

7

That's not a law - in fact it's quite wrong!

You want !a && !b. Then its one of De Morgan's laws.

1
  • yes, it was what I wanted. edited. I'm sorry. Commented Aug 3, 2014 at 18:37

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.