r/cpp_questions • u/[deleted] • Aug 31 '25
OPEN What is long long
I saw some c++ code and I noticed it has long long, I never knew you could put 2 primitives next to each other. What does this do?
1
Upvotes
r/cpp_questions • u/[deleted] • Aug 31 '25
I saw some c++ code and I noticed it has long long, I never knew you could put 2 primitives next to each other. What does this do?
13
u/y53rw Aug 31 '25 edited Aug 31 '25
All of the fundamental types are here.
https://en.cppreference.com/w/cpp/language/types.html
Note that some types can be written multiple ways.
long longcan also be writtenlong long intorsigned long long intorsigned long long.