当前位置:网站首页>二进制操作
二进制操作
2022-07-02 17:50:00 【悠然少年心】
#include<stdio.h>
int main()
{
char a = 2; //char占一个字节这里就是:
//0000 0002
char b = -2;
//1000 0002
//原码:
//1111 1111-0111 1111 -127 127
//反码:
//正数的反码就是本身,负数的反码就是负号不变其余全部取反
//补码
//正数的补码就是本身,负数的补码是他的反码+1
//在C里面呢实际上是用补码进行计算的
//1+(-1)
//-1反码 1000 0001=》1111 1110 -1补码: 1111 1111
// 1111 1111+0000 0001= 1 0000 0000 去掉第八个0最高位然后把1拿过来 1000 0000 //128 但是由于是溢出的所以是-128
}
边栏推荐
- R语言ggplot2可视化:可视化折线图、使用labs函数为折线图添加自定义的X轴标签信息
- [daily question] first day
- ORA-01455: converting column overflows integer datatype
- 【JVM调优实战100例】02——虚拟机栈与本地方法栈调优五例
- How to copy and paste interlaced in Excel
- R language uses lrtest function of epidisplay package to perform likelihood ratio test on multiple GLM models (logisti regression). Compare whether the performance of the two models is different, and
- [0701] [论文阅读] Alleviating Data Imbalance Issue with Perturbed Input During Inference
- #gStore-weekly | gStore源码解析(四):安全机制之黑白名单配置解析
- Typical application of "stack" - expression evaluation (implemented in C language)
- Meta universe chain game system development (logic development) - chain game system development (detailed analysis)
猜你喜欢
![[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

After 22 years in office, the father of PowerShell will leave Microsoft: he was demoted by Microsoft for developing PowerShell

Comprendre complètement le tutoriel de traitement de Point Cloud basé sur open3d!

Excel如何进行隔行复制粘贴

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

仿京东放大镜效果(pink老师版)
![[0701] [论文阅读] Alleviating Data Imbalance Issue with Perturbed Input During Inference](/img/c7/9b7dc4b4bda4ecfe07aec1367fe059.png)
[0701] [论文阅读] Alleviating Data Imbalance Issue with Perturbed Input During Inference

How to play when you travel to Bangkok for the first time? Please keep this money saving strategy

Ali was wildly asked by the interviewer on three sides. Redis dared not write 'proficient' on his resume anymore

【JVM调优实战100例】03——JVM堆调优四例
随机推荐
使用 Cheat Engine 修改 Kingdom Rush 中的金钱、生命、星
After 22 years in office, the father of PowerShell will leave Microsoft: he was demoted by Microsoft for developing PowerShell
【每日一题】第一天
UML class diagram
电商系统中常见的 9 大坑,你踩过没?
[100 cases of JVM tuning practice] 03 -- four cases of JVM heap tuning
R language dplyr package Na_ The if function converts the control in the vector value into the missing value Na, and converts the specified content into the missing value Na according to the mapping r
The text editor hopes to mark the wrong sentences in red, and the text editor uses markdown
AI开发调试系列第二弹:多机分布式调测探索之旅
[100 cases of JVM tuning practice] 01 - introduction of JVM and program counter
Excel如何进行隔行复制粘贴
[0701] [论文阅读] Alleviating Data Imbalance Issue with Perturbed Input During Inference
Redis (7) -- database and expiration key
[fluent] dart data type (VaR data type | object data type)
R语言ggplot2可视化:可视化折线图、使用labs函数为折线图添加自定义的X轴标签信息
Exness in-depth good article: dynamic series - Case Analysis of gold liquidity (V)
How to enable the run dashboard function of idea
2022编译原理期末考试 回忆版
消息队列消息丢失和消息重复发送的处理策略
ICDE 2023|TKDE Poster Session(CFP)