当前位置:网站首页>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
}
边栏推荐
- [0701] [论文阅读] Alleviating Data Imbalance Issue with Perturbed Input During Inference
- Hongmeng's fourth learning
- 页面标题组件
- R language dplyr package filter function filters dataframe data. If the name of the data column (variable) to be filtered contains quotation marks, you need to use!! SYM syntax processing, otherwise n
- #gStore-weekly | gStore源码解析(四):安全机制之黑白名单配置解析
- Hospital online inquiry source code hospital video inquiry source code hospital applet source code
- 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
- Novice must see, click two buttons to switch to different content
- Excel如何进行隔行复制粘贴
- Markdown basic grammar
猜你喜欢

How to copy and paste interlaced in Excel

全链路数字化转型下,零售企业如何打开第二增长曲线
![[100 cases of JVM tuning practice] 02 - five cases of virtual machine stack and local method stack tuning](/img/59/6c776e0607a52962b72fbea2e64c8e.png)
[100 cases of JVM tuning practice] 02 - five cases of virtual machine stack and local method stack tuning

潇洒郎:彻底解决Markdown图片问题——无需上传图片——无需网络——转发给他人图片无缺失

在纽约寻找童真——新泽西州乐高乐园探索中心的美好一天

【JVM调优实战100例】03——JVM堆调优四例

高级性能测试系列《24. 通过jdbc执行sql脚本》

新加坡暑假旅遊攻略:一天玩轉新加坡聖淘沙島

Codeworks 5 questions per day (1700 average) - day 4
![[100 cases of JVM tuning practice] 01 - introduction of JVM and program counter](/img/c4/3bba96fda92328704c2ddd929dcdf6.png)
[100 cases of JVM tuning practice] 01 - introduction of JVM and program counter
随机推荐
新加坡暑假旅游攻略:一天玩转新加坡圣淘沙岛
日期工具类(不定时更新)
STM32G0 USB DFU 升级校验出错-2
R language uses Cox of epidisplay package Display function obtains the summary statistical information of Cox regression model (risk rate HR, adjusted risk rate and its confidence interval, P value of
R语言ggplot2可视化:gganimate包创建动态柱状图动画(gif)、使用transition_states函数在动画中沿给定维度逐步显示柱状图
MySQL advanced learning summary 7: MySQL data structure - Comparison of hash index, AVL tree, B tree and b+ tree
论文导读 | 关于将预训练语言模型作为知识库的分析与批评
Crypto usage in nodejs
Novice must see, click two buttons to switch to different content
使用xml文件打印mybaties-log插件的方式
Mysql高级篇学习总结7:Mysql数据结构-Hash索引、AVL树、B树、B+树的对比
High frequency interview questions
M2dgr: slam data set of multi-source and multi scene ground robot (ICRA 2022)
数据降维——主成分分析
Tutorial (5.0) 09 Restful API * fortiedr * Fortinet network security expert NSE 5
How performance testing creates business value
Mysql高级篇学习总结6:索引的概念及理解、B+树产生过程详解、MyISAM与InnoDB的对比
Troubleshooting: kubectl reports an error validationerror: unknown field \u00a0
Mysql高级篇学习总结8:InnoDB数据存储结构页的概述、页的内部结构、行格式
How to copy and paste interlaced in Excel