开发者

What kind of data type is "long long"?

开发者 https://www.devze.com 2022-12-17 04:25 出处:网络
I don\'t know this type. Is that the biggest one from all? I think it is an integer type, right? Or is it a floating point thing? Bigger 开发者_C百科than double?According to C99 standard, long long is

I don't know this type. Is that the biggest one from all? I think it is an integer type, right? Or is it a floating point thing? Bigger 开发者_C百科than double?


According to C99 standard, long long is an integer type which is at least 64-bit wide. There are two integer 64-bit types specified: long long int and unsigned long long int

So, yes, this is the biggest integer type specified by C language standard (C99 version).

There is also long double type specified by C99. It's an extended precision floating point numeric data type long for 80-bits on most popular x86-based platforms and implementations of C language.


The short and simple is that a long long is an int that is at least 64 bits wide. The rationale for this is here. Basically, it is a response to 64 bit architecture and backwards compatibility. And the name long long was deemed the least bad of all possibilities by the standards committee.

0

精彩评论

暂无评论...
验证码 换一张
取 消