Since when have they been part of standard C++? I think long long
is a C++0x feature, is that right? What about long double
? Was that already in C++98 or C++03?
views:
180answers:
1
+8
A:
Both long double
and long long
have been around for quite a while, and were standardised in C89 and C99, respectively. C++ standardised long double
from its first version, C++98, and will add long long
in the upcoming revision to the standard.
Marcelo Cantos
2010-05-31 10:29:33
I believe you're correct. Source: http://en.wikipedia.org/wiki/C_%28programming_language%29#C99
Xavier Ho
2010-05-31 10:30:41
Just to clarify, `long double` is C++98 and `long long` is C++0x, correct or wrong?
FredOverflow
2010-05-31 10:31:37
Not downvoted since the question was about C++ anyway, but `long double` is not new to C99. [Multiple sources](http://bytes.com/topic/c/answers/219940-long-double-c89)
MSalters
2010-05-31 14:45:50
Thanks for pointing that out MSalters; I placed too much trust in Wikipedia. Emended.
Marcelo Cantos
2010-05-31 22:00:36