【发布时间】:2013-11-06 18:03:06
【问题描述】:
2 个问题
首先,而
long long int num = 1000000000000;
工作正常
long long int num = 4014109449;
给予
warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
什么意思?
其次
long long int num = 1000000*1000000;
给出溢出警告 而
long long int num = 1000000000000;
没关系,即使它们是相同的。我该如何摆脱它?乘法给出一个垃圾值
【问题讨论】:
-
您需要知道整数文字的类型。见stackoverflow.com/q/8108642/420683
标签: c