对与错逻辑和||逻辑表 [英] True and False for && logic and || Logic table
问题描述
我听说过&& C语言的C表为false.或||是一种数学,他们说如果true + true = true和false + true = false
I have heard of a table true false for C Language for and && or || is kind of the mathematics one for which they say if true+true=true and false+true=false
对此我有点困惑,我尝试进行研究,但找不到任何表格
I'm just kind of confuse on this and I tried to do the research but couldn't find any of the table
我只希望有这张桌子作为笔记,因为我将用C语言做更多的事情
I just wish to have this table for my notes since I will do more in C language
如果有人可以将我带到他们对此进行解释的网站或资源上
if someone could bring me to the site or resources where they explain about this more
我已经编辑了原来的问题,以便为自己的学习做笔记.感谢@thiton提供的出色参考,其余的感谢您提供了出色的答案/资源.
I've edited my original question to make it a note for my own study. Thanks @thiton for the great references and the rest for an awesome answer/resources.
Logical AND (&&)
Logical AND (&&)
false && false: false
false && true: false
true && false: false
true && true: true
逻辑或(||)
false || false: false
false || true: true
true || false: true
true || true: true
逻辑非(!)
!false: true
!true: false
推荐答案
您可能是指布尔运算符的真值表,该表显示了常规布尔运算(&& ;, ||)的结果.该表不是特定于语言的,但可以在例如此处.
You probably mean a truth table for the boolean operators, which displays the result of the usual boolean operations (&&, ||). This table is not language-specific, but can be found e.g. here.
这篇关于对与错逻辑和||逻辑表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!