当前位置:网站首页>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
边栏推荐
- Communication mode between processes
- H5网页播放器EasyPlayer.js如何实现直播视频实时录像?
- Selenium+bs4 parsing +mysql capturing BiliBili Tarot data
- The applet realizes multi-level page switching back and forth, and supports sliding and clicking operations
- 大佬们,有没有遇到过flink cdc读MySQLbinlog丢数据的情况,每次任务重启就有概率丢数
- 进程间的通信方式
- iNFTnews | 时尚品牌将以什么方式进入元宇宙?
- thinkphp3.2信息泄露
- 使用BigDecimal的坑
- Unity uses mesh to realize real-time point cloud (II)
猜你喜欢

细说Mysql MVCC多版本控制
![[4G/5G/6G专题基础-147]: 6G总体愿景与潜在关键技术白皮书解读-2-6G发展的宏观驱动力](/img/21/6a183e4e10daed90c66235bdbdc3bf.png)
[4G/5G/6G专题基础-147]: 6G总体愿景与潜在关键技术白皮书解读-2-6G发展的宏观驱动力

【frida实战】“一行”代码教你获取WeGame平台中所有的lua脚本

农牧业未来发展蓝图--垂直农业+人造肉

AI从感知走向智能认知

VSCode+mingw64+cmake

Lecture 1: stack containing min function

Unity uses mesh to realize real-time point cloud (I)

Switching value signal anti shake FB of PLC signal processing series

20排位赛3
随机推荐
Upload taro pictures to Base64
Liunx command
CDZSC_2022寒假个人训练赛21级(2)
js逆向教程第二发-猿人学第一题
Lesson 1: finding the minimum of a matrix
Applet sliding, clicking and switching simple UI
C# 初始化程序时查看初始化到哪里了示例
CDZSC_ 2022 winter vacation personal training match level 21 (1)
2020CCPC威海 J - Steins;Game (sg函数、线性基)
How to use Mongo shake to realize bidirectional synchronization of mongodb in shake database?
Unity shader (pass user data to shader)
How to become a senior digital IC Design Engineer (5-2) theory: ULP low power design technology (Part 1)
csdn涨薪技术-浅学Jmeter的几个常用的逻辑控制器使用
CMD startup software passes in parameters with spaces
Sqlplus garbled code problem, find the solution
IIS faked death this morning, various troubleshooting, has been solved
Dynamics 365online applicationuser creation method change
[4g/5g/6g topic foundation-146]: Interpretation of white paper on 6G overall vision and potential key technologies-1-overall vision
CDZSC_ 2022 winter vacation personal training match level 21 (2)
CSDN salary increase technology - learn about the use of several common logic controllers of JMeter