C:长长总是64位?

Joh*_*ohn 7 c

如果我在我的代码中使用long longs,那么无论运行什么代码的机器,我是否绝对100%保证它们将具有64位?

Pab*_*ruz 14

不,C99标准表示它至少有 64位.所以它可能比我想的更多.int64_t如果您需要64位,您可以使用类型,假设您已经stdint.h可用(C99中的标准).

#include <stdint.h>
int64_t your_i64;
Run Code Online (Sandbox Code Playgroud)