当前位置:网站首页>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
边栏推荐
- VSCode+mingw64
- What development models did you know during the interview? Just read this one
- Difference between process and thread
- Unity shader (data type in cghlsl)
- 2020CCPC威海 J - Steins;Game (sg函数、线性基)
- 【原创】程序员团队管理的核心是什么?
- 农牧业未来发展蓝图--垂直农业+人造肉
- How will fashion brands enter the meta universe?
- 印象笔记终于支持默认markdown预览模式
- AI从感知走向智能认知
猜你喜欢
基于智慧城市与储住分离数字家居模式垃圾处理方法
H5网页播放器EasyPlayer.js如何实现直播视频实时录像?
小程序弹出半角遮罩层
企业实战|复杂业务关系下的银行业运维指标体系建设
面试被问到了解哪些开发模型?看这一篇就够了
Octopus future star won a reward of 250000 US dollars | Octopus accelerator 2022 summer entrepreneurship camp came to a successful conclusion
基础篇:带你从头到尾玩转注解
内存==c语言1
农牧业未来发展蓝图--垂直农业+人造肉
Pit using BigDecimal
随机推荐
Pit using BigDecimal
thinkphp3.2信息泄露
JS reverse tutorial second issue - Ape anthropology first question
Diffusion模型详解
大佬们,请问 MySQL-CDC 有什么办法将 upsert 消息转换为 append only 消
基础篇:带你从头到尾玩转注解
第一讲:鸡蛋的硬度
How does mongodb realize the creation and deletion of databases, the creation of deletion tables, and the addition, deletion, modification and query of data
Huffman encoded compressed file
CDZSC_2022寒假个人训练赛21级(2)
哈夫曼编码压缩文件
根据热门面试题分析Android事件分发机制(一)
创建一个长度为6的int型数组,要求数组元素的值都在1-30之间,且是随机赋值。同时,要求元素的值各不相同。
第十四次试验
CDZSC_ 2022 winter vacation personal training match level 21 (1)
NETCORE 3.1 solves cross domain problems
牛客网——华为题库(61~70)
Upload taro pictures to Base64
CodeForces - 1324D Pair of Topics(二分或双指针)
AI从感知走向智能认知