当前位置:网站首页>C language unsigned int and int
C language unsigned int and int
2022-07-22 20:34:00 【DmrForever】
```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void main(){
int a=-1;
unsigned int b = -1;
printf("%d\n",a);
printf("%u\n",b);
// << Compliance operation priority is greater than -
printf("%u\n",(1<<32)-1); //32 All the seats are 1, by unsigned int Maximum of type , by int Type of -1
printf("%d\n",(1<<32)-1);
printf("%d\n",sizeof(int));
printf("%d\n",sizeof(long));
printf("%d\n",sizeof(long long));
// The positive original code is the same as the negative complement ; Negative inverse code means that the original code is reversed except for the sign bit , Complement is the inverse plus one
/* Output results :
-1
4294967295
4294967295
-1
4
4
8
*/
}
```
边栏推荐
- Canny edge detection
- 1087 All Roads Lead to Rome (30 分)
- 16进制字符串与字节数组之间的转换
- Classic cases of semaphore synchronization and mutual exclusion
- Introduction to machine learning: topic model-4
- Stack implementation (C language)
- 1064 Complete Binary Search Tree (30 分)
- Leetcode0002——Add Two Numbers——Linked List
- Leetcode0022 - bracket generation - DFS
- 1091 Acute Stroke (30 分)
猜你喜欢
LeetCode53——Maximum Subarray——3 different methods
Stack implementation (C language)
CPU affinity
JDBC异常SQLException的捕获与处理
LeetCode21——Merge two sorted lists——Iteration or recursion
IDEA 隐藏.idea文件夹 隐藏.iml文件
Pytorch中 类Parameter的解析,类内成员函数.parameters()的源码分析,参数集合的获取,参数的注册赋值源码分析
二分查找(递归函数)
LeetCode160 & LeetCode141——double pointers to solve the linked list
Exclusive interview with Huang Hui, a scholar of women in AI: dream of drawing shapes and find the door to breakthrough
随机推荐
鏈棧實現(C語言)
【文献阅读与想法笔记13】Pre-Trained Image Processing Transformer
进程fork
Her power series 6 - Yang Di 1: when the girl grows up, she can be good at mathematics and chemistry, and scientific research can be very fresh
她力量系列四丨读博6年两次换导师,靠一点点“倔”,俞舟成为social chatbot的开拓者之一
Introduction to machine learning: linear regression-1
docker安装3主3从redis集群
Introduction to machine learning: support vector machine-6
Mysql连接失败解决方案
IDEA下载源码查看
Causal learning weekly, issue 10: introduction to the latest causal discovery related papers in iclr2022
1049 counting ones (30 points)
Function principle of pytoch network training process: source code analysis optimizer.zero_ grad()loss.backward()optimizer.step()
LeetCode32——next permutation
1045 favorite color stripe (30 points)
Chain stack implementation (C language)
1045 Favorite Color Stripe (30 分)
YOLO v1、v2、v3
她力量系列八丨陈丹琦:我希望女生能够得到更多的机会,男生和女生之间的gap会逐渐不存在的
SSM framework integration