当前位置:网站首页>Binary operation
Binary operation
2022-07-02 19:11:00 【Leisurely young heart】
#include<stdio.h>
int main()
{
char a = 2; //char Take one byte, here is :
//0000 0002
char b = -2;
//1000 0002
// Original code :
//1111 1111-0111 1111 -127 127
// Inverse code :
// The inverse of a positive number is itself , The inverse code of a negative number is that the minus sign remains unchanged, and all the rest are reversed
// Complement code
// The complement of a positive number is itself , The complement of a negative number is his inverse +1
// stay C Inside, it is actually calculated with complement
//1+(-1)
//-1 Inverse code 1000 0001=》1111 1110 -1 Complement code : 1111 1111
// 1111 1111+0000 0001= 1 0000 0000 Remove the eighth one 0 The highest position and then put 1 Take over 1000 0000 //128 But because it is overflow, it is -128
}
边栏推荐
- 2022 software engineering final exam recall Edition
- 2022编译原理期末考试 回忆版
- 迷你高尔夫球场:伦敦休闲旅游好去处
- 性能测试如何创造业务价值
- Emmet basic syntax
- The difference between interceptor and filter
- R语言使用epiDisplay包的lrtest函数对多个glm模型(logisti回归)执行似然比检验(Likelihood ratio test)对比两个模型的性能是否有差异、广义线性模型的似然比检
- 虚拟机初始化脚本, 虚拟机相互免秘钥
- 从list转化成map的时候,如果根据某一属性可能会导致key重复而异常,可以设置处理这种重复的方式
- 消息队列消息丢失和消息重复发送的处理策略
猜你喜欢

【JVM调优实战100例】01——JVM的介绍与程序计数器
![[daily question] the next day](/img/8a/18329bd9b4a3a4445c8fbbc1ce562b.png)
[daily question] the next day

教程篇(5.0) 10. 故障排除 * FortiEDR * Fortinet 网络安全专家 NSE 5
![[daily question] first day](/img/8c/f25cddb6ca86d44538c976fae13c6e.png)
[daily question] first day

【测试开发】软件测试—概念篇

Tutorial (5.0) 10 Troubleshooting * fortiedr * Fortinet network security expert NSE 5

Mini Golf Course: a good place for leisure and tourism in London

Excel如何进行隔行复制粘贴

Imitation Jingdong magnifying glass effect (pink teacher version)

9D电影是怎样的?(+维度空间常识)
随机推荐
Golang并发编程——goroutine、channel、sync
Hospital online inquiry source code hospital video inquiry source code hospital applet source code
Excel finds the same value in a column, deletes the row or replaces it with a blank value
[test development] software testing - concept
MySQL advanced learning summary 8: overview of InnoDB data storage structure page, internal structure of page, row format
Emmet基础语法
【JVM调优实战100例】02——虚拟机栈与本地方法栈调优五例
Compile oglpg-9th-edition source code with clion
ORA-01455: converting column overflows integer datatype
Page title component
R语言dplyr包na_if函数把向量数值中的控制转化为缺失值NA、按照映射规则把指定内容转化为缺失值NA
When converting from list to map, if a certain attribute may cause key duplication and exceptions, you can set the way to deal with this duplication
Singapore summer tourism strategy: play Singapore Sentosa Island in one day
Develop fixed asset management system, what voice is used to develop fixed asset management system
高频面试题
Introduction to the paper | analysis and criticism of using the pre training language model as a knowledge base
【测试开发】一文带你了解什么是软件测试
Processing strategy of message queue message loss and repeated message sending
消息队列消息丢失和消息重复发送的处理策略
Emmet basic syntax