问题标签 [bcc-compiler]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c - C 编程中的长整数范围
根据链接https://www.geeksforgeeks.org/data-types-in-c/2
如果我们假设long int
需要 8 个字节(64 位),那么它的范围应该是 -2^63 到 2^63-1 ,但是上面的链接中没有给出。为什么会这样?
同样unsigned long int
应该在 0 到 2^64 之间。
请告诉 的范围是什么float
,因为它没有在链接double
中long double
提到。