What are XAND and XOR

后端 未结 17 1459
旧巷少年郎
旧巷少年郎 2020-12-06 04:51

What are XAND and XOR? Also is there an XNot

17条回答
  •  感动是毒
    2020-12-06 05:46

    Hmm.. well I know about XOR (exclusive or) and NAND and NOR. These are logic gates and have their software analogs.

    Essentially they behave like so:

    XOR is true only when one of the two arguments is true, but not both.

    F XOR F = F
    F XOR T = T
    T XOR F = T
    T XOR T = F
    

    NAND is true as long as both arguments are not true.

    F NAND F = T
    F NAND T = T
    T NAND F = T
    T NAND T = F
    

    NOR is true only when neither argument is true.

    F NOR F = T
    F NOR T = F
    T NOR F = F
    T NOR T = F
    

提交回复
热议问题