当前位置:网站首页>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
边栏推荐
- Qualifying 3
- Check the example of where the initialization is when C initializes the program
- sql 里面使用中文字符判断有问题,哪位遇到过?比如value&lt;&gt;`无`
- 洛谷P2482 [SDOI2010]猪国杀
- [bw16 application] Anxin can realize mqtt communication with bw16 module / development board at instruction
- 印象笔记终于支持默认markdown预览模式
- Applet popup half angle mask layer
- **Grafana installation**
- 剑指 Offer II 107. 矩阵中的距离
- 基础篇:带你从头到尾玩转注解
猜你喜欢

基于智慧城市与储住分离数字家居模式垃圾处理方法

第一讲:包含min函数的栈

一大波开源小抄来袭

How will fashion brands enter the meta universe?

Use 3 in data modeling σ Eliminate outliers for data cleaning

【原创】程序员团队管理的核心是什么?

Dynamics 365online applicationuser creation method change

【BW16 应用篇】安信可BW16模组/开发板AT指令实现MQTT通讯

Software modeling and analysis

What development models did you know during the interview? Just read this one
随机推荐
H5网页播放器EasyPlayer.js如何实现直播视频实时录像?
企业实战|复杂业务关系下的银行业运维指标体系建设
第十四次试验
Basic chapter: take you through notes
iNFTnews | 时尚品牌将以什么方式进入元宇宙?
Binary tree high frequency question type
Applet sliding, clicking and switching simple UI
第一讲:包含min函数的栈
Sqlplus garbled code problem, find the solution
Scratch crawler mysql, Django, etc
进程间的通信方式
Loxodonframework quick start
内存==c语言1
Impression notes finally support the default markdown preview mode
进程和线程的区别
Guys, how can mysql-cdc convert the upsert message to append only
How to use clipboard JS library implements copy and cut function
Basic use of JMeter to proficiency (I) creation and testing of the first task thread from installation
Do you have a boss to help look at this error report and what troubleshooting ideas are there? Oracle CDC 2.2.1 flick 1.14.4
Communication mode between processes