当前位置:网站首页>Integer inversion
Integer inversion
2022-07-07 09:53:00 【Don't ask me y】
1. The representation of signed numbers :-2^(n-1)——2 ^(n-1)-1
2.0x and h Are used to express 16 Base number ,0x Indicates prefix , stay c/c++ Must use 0x.
3.INT_MAX and INT_MIN On behalf of int Maximum and minimum values of type
The header file is included in <limits.h> In the definition of
INT_MAX=2147483647
#define INT_MIN (-INT_MAX - 1)
The minimum value cannot be defined directly , Because it's not a number , It's an expression , Negative for maximum , Because he has overflowed , So subtract 1.
4. Ternary expression : expression 1|| expression 2? result 1: result 2
边栏推荐
- 大佬们,有没有遇到过flink cdc读MySQLbinlog丢数据的情况,每次任务重启就有概率丢数
- Guys, how can mysql-cdc convert the upsert message to append only
- js逆向教程第二发-猿人学第一题
- [4g/5g/6g topic foundation -147]: Interpretation of the white paper on 6G's overall vision and potential key technologies -2-6g's macro driving force for development
- [4g/5g/6g topic foundation-146]: Interpretation of white paper on 6G overall vision and potential key technologies-1-overall vision
- 进程和线程的区别
- nlohmann json
- Dynamics 365online applicationuser creation method change
- Niuke - Huawei question bank (61~70)
- Scratch crawler mysql, Django, etc
猜你喜欢
ComputeShader
【frida实战】“一行”代码教你获取WeGame平台中所有的lua脚本
企业实战|复杂业务关系下的银行业运维指标体系建设
字节跳动 Kitex 在森马电商场景的落地实践
Diffusion模型详解
Elaborate on MySQL mvcc multi version control
Detailed explanation of diffusion model
CentOS installs JDK1.8 and mysql5 and 8 (the same command 58 in the second installation mode is common, opening access rights and changing passwords)
What development models did you know during the interview? Just read this one
面试被问到了解哪些开发模型?看这一篇就够了
随机推荐
Can flycdc use SqlClient to specify mysqlbinlog ID to execute tasks
What development models did you know during the interview? Just read this one
进程和线程的区别
Unity shader (data type in cghlsl)
剑指 Offer II 107. 矩阵中的距离
[4g/5g/6g topic foundation-146]: Interpretation of white paper on 6G overall vision and potential key technologies-1-overall vision
Basic use of JMeter to proficiency (I) creation and testing of the first task thread from installation
Switching value signal anti shake FB of PLC signal processing series
MySQL can connect locally through localhost or 127, but cannot connect through intranet IP (for example, Navicat connection reports an error of 1045 access denied for use...)
根据热门面试题分析Android事件分发机制(一)
Oracle安装增强功能出错
IIS redirection redirection appears eurl axd
Unity uses mesh to realize real-time point cloud (I)
【frida实战】“一行”代码教你获取WeGame平台中所有的lua脚本
There is a problem using Chinese characters in SQL. Who has encountered it? Such as value & lt; & gt;` None`
洛谷P2482 [SDOI2010]猪国杀
CentOS installs JDK1.8 and mysql5 and 8 (the same command 58 in the second installation mode is common, opening access rights and changing passwords)
AI从感知走向智能认知
如何成为一名高级数字 IC 设计工程师(5-2)理论篇:ULP 低功耗设计技术精讲(上)
Unity shader (pass user data to shader)