unsigned long long 和long long 的区别
时间: 2023-10-13 17:04:41 浏览: 135
详解 IOS下int long longlong的取值范围
5星 · 资源好评率100%
unsigned long long和long long的区别在于它们的取值范围和符号位的处理方式。unsigned long long是无符号的长长整型,它的取值范围是从0到2^64-1,即0到18446744073709551615。而long long是有符号的长长整型,它的取值范围是从-2^63到2^63-1,即-9223372036854775808到9223372036854775807。\[1\] \[2\] \[3\]
#### 引用[.reference_title]
- *1* [unsigned long与unsigned long long 在windows和linux中位数的区别](https://blog.csdn.net/ZhangWangYang/article/details/118329283)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [unsigned long long类型与long long类型](https://blog.csdn.net/u014800748/article/details/45439857)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文