当前位置:网站首页>1.5 - logical operation
1.5 - logical operation
2022-06-30 06:33:00 【It's Li sticky duck】
One 、 Logical operations

- or : One is true is true ;
- And : If one is false, it is false ;
- Exclusive or : True or false , All are false ; One true and one false is true ;
- Same as or : If it's all true, it's true , All false is true ; One true and one false is false ;
- Not : It is true or false ; If it is false, it is true ;
Two 、 To assist in understanding

- 0 Said the false ,1 Said really ;
Be careful :Every logical operation has many symbols , Applicable to different environments ; for example || Applicable in code , Others can be used in algebraic operations ;
3、 ... and : Examination site : Of logical operations

- From the title, we can see ,00、11 It is an effective expression of numerical symbols ; That is to say When the sign bits of both numbers are 00, or All are 11 when , their The result of logical operation is true (0);
- 01、10 Is an invalid representation of a numeric symbol ; That is, when the sign bits of two numeric values All are 01, perhaps All are 10 when , their The result of logical operation is false (1);
- So we can infer from this , Need to carry out Exclusive or Logical operations , In order to meet the requirements of the question, two numbers with the same symbol are added , The operation result overflows , It's fake (1);
Be careful :
When doing the problem of logical operation , In an abnormal situation , Overflow in the above question , Then his result is false , That is to say 1;
边栏推荐
- Rotate dimension tool rolabelimg
- Zibll sub theme v6.4.1wordpress open source download_ Crack the original / use it directly / no tutorial required
- Data read / write: realize data read / write function based on C # script in unity
- MySQL中的InnoDB引擎
- Set in set (III)
- Static routing job
- Use of observer mode and status mode in actual work
- C language final experiment report (student achievement management system) source code
- DOM (document object model) document XML file object model
- 不忘初心,能偷懒就偷懒:C#操作Word文件
猜你喜欢
随机推荐
银河麒麟初体验
File operation io-part1
JS prototype chain object function relationship
Combat simulation system data
Unable to read file for extraction: gdx64. dll
Introduction to neural networks
我做功能测试这么多年的心得
Traitement d'images 7 - amélioration d'images
Getting started with research
File Transfer Protocol,FTP文件共享服务器
Arrangement of in-depth learning materials
Base64 explanation: playing with pictures Base64 encoding
Docker is equipped with the latest MySQL image
从底层结构开始学习FPGA----RAM IP核及关键参数介绍
As function memo
List in set (2)
Ini parsing learning documents
Data read / write: realize data read / write function based on C # script in unity
Gazebo model modification
【我的创作纪念日】一周年随笔









