2 and ((3=3) or (3<7))的值?
来源:百度知道 编辑:UC知道 时间:2024/06/27 20:05:02
如题
ture 或 1
不一定.
如果是逻辑运算,那么结果是true
但是如果是算数运算,结果不好说
主要是编译器怎么理解(3=3)的问题,可能是3也可能是1吧
true
2 and ((3=3) or (3<7))
先计算((3=3) or (3<7))
3=3结果为真,(3<7)结果为0,因为是or关系,两个表达式只要有一个为真结果就为真,所以结果为1
再计算2 and ((3=3) or (3<7))
2本身是一个非0值,所以结果为1,((3=3) or (3<7))表达式结果也为1,是and关系,所以结果为1
在vb 中是2
在c 中是如果and 和 or是算数运算符则值为1。
如果是逻辑运算符则值1。
但看这个语句应该是basic语言。
答案:2
一SQL查询语句的条件部分Where b.TypeId=2 AND m.TypeId=b.Id AND m.UnitId=b1.Id AND b1.TypeId=3
Thinkvantage Rescue and Recovery 3
2 and ((3=3) or (3<7))的值?
2 and 3 [ ] 5 Aare Bis 选A还是B
英语越来越..的说法我这有3种,哪个对.1、比较级+比较级 2、more and more+比较级 3、more and more+原级
select uid from T_TABLE Where num='3' and time between like '200701%' and like '200702%'
SQL注入and 1 =1 和 and 1=2 是利用了什么?
MaSon的you and me and the devil makes 3的歌词 急求
解释句子:Add 3 and 9,and you will get 12.(plus/equal)
conn.execute("delete * from SMT_sca where SMT_key1=0 and SMT_enrol=3")