Evaluate !(1 && !(0 || 1)).

This is a discussion on Evaluate !(1 && !(0 || 1)). within the C++ Programming forums, part of the General Programming Boards category; Evaluate !(1 && !(0 || 1)). NOT( 1 AND NOT (0 OR 1) ) Answer is True? WHYYYY!? How does ...

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    56

    Evaluate !(1 && !(0 || 1)).

    Evaluate !(1 && !(0 || 1)).

    NOT( 1 AND NOT (0 OR 1) )

    Answer is True?

    WHYYYY!?

    How does this work?

  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    !(1 && !(0 || 1)) =
    !(1 && !(TRUE)) =
    !(1 && FALSE) =
    !(FALSE) =
    TRUE
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  3. #3
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    It seems like I just saw this... but I don't remember the name of the thread. Anyone?

    (0||1)==1
    !1 == 0
    1 && 0 == 0
    !0 = 1
    1= true
    Away.

  4. #4
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    you saying it is homework? I guess we'll have to watch for this one in the future
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  5. #5
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    I'd say it's either homework or a tutorial somewhere...

    Anyway, I think it was within the past week or two, but I can't search for !(1&&!(0||1) so it would be a pain to find.
    Away.

  6. #6
    Registered User
    Join Date
    Aug 2003
    Posts
    56


    I didnt see that, Thanks.

    I never thought to evaluate it that way. I just kinda thought about it in my head till it hurt... LOL.

    BTW, its in the tutorial quiz on this site.... I'm sure it comes up every couple weeks or so.

  7. #7
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Haha, I guess we know where they're finding it now FYB
    Away.

  8. #8
    Registered User
    Join Date
    Jan 2003
    Posts
    25
    Someone explain it please


    that is it that you seen it from. i was the one that started it. and i got a lot of help

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Personal Program that is making me go wtf?
    By Submeg in forum C Programming
    Replies: 20
    Last Post: 06-27-2006, 01:13 AM
  2. process killer on a loop
    By Anddos in forum Windows Programming
    Replies: 8
    Last Post: 01-11-2006, 01:50 AM
  3. Replies: 4
    Last Post: 11-23-2003, 07:15 AM
  4. Massive Function Problem
    By Marc Sharp in forum C Programming
    Replies: 10
    Last Post: 11-19-2003, 08:49 PM
  5. Tic Tac Toe Help
    By aresashura in forum C++ Programming
    Replies: 1
    Last Post: 11-21-2001, 12:52 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21