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?
7
u/Warshrimp Aug 31 '25
Wouldn't it be great if char = 8, short = 16, int = 32, long = 64 and long long were 128? I hope the next time someone treats a new data model they stick with this.