Using long or int in C++

Правка en1, от 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?

Теги #c++, #int, #long

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский idk321 2020-04-26 20:47:25 279 Initial revision (published)