Using long or int in C++

Revision en1, by idk321, 2020-04-26 20:47:25

In Java int was a number with a maximum of 2^32 while in C++ the guaranteed maximum of int is not necessarily more than 2^16. Should I therefore always use long when I used int in Java? But, if I look at the code of other competitors, they mostly use int?

Tags #c++, #int, #long

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English idk321 2020-04-26 20:47:25 279 Initial revision (published)