加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c – LL在1000LL中的含义是什么?

发布时间:2020-12-16 10:01:21 所属栏目:百科 来源:网络整理
导读:我发表了这样的声明: time_t time = x / 1000LL; 那LL真正意味着什么呢? 解决方法 从 this question复制粘贴,这似乎与ULL后缀完全相同: From the gcc 07001: ISO C99 supports data types for integers that are at least 64 bits wide,and as an extensi
我发表了这样的声明:

time_t time = x / 1000LL;

那LL真正意味着什么呢?

解决方法

从 this question复制粘贴,这似乎与ULL后缀完全相同:

From the gcc 07001:

ISO C99 supports data types for integers that are at least 64 bits wide,and as an extension GCC supports them in C90 mode and in C++.
Simply write long long int for a signed integer,or unsigned long
long int
for an unsigned integer. To make an integer constant of type
long long int,add the suffix LL to the integer. To make an
integer constant of type unsigned long long int,add the suffix
ULL to the integer.

实际上,它是long long int类型的后缀.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读