I have this operation (8 * (512 * 786432)), and the product is 3221225472
I tried to use it with variables like longlong, unsigned long
But the compiler will give me an error
c4307 integral constant overflow
and I need a result to use it with functions, how can I fix it? or which variables can work for large numbers?
considers
(8 * (512 * 786432)) int 32- . long , . , .
(8 * (512 * 786432))
int
long
long x = (8L * (512L * 786432L));
L , long.
L
, long - 64-, , Windows. LL ( i64) Windows.
LL
i64
(8 * (512ull * 786432))
Source: https://habr.com/ru/post/1524797/More articles:Jar file will not start with double click - javaJava ImageIO.read (getClass (). GetResource ()) returns null - javaCalling a web service from an ASP.NET WebAPI application - c #Использование ServiceStack Funq IoC: как впрыскиваются зависимости? - c#Intuition about a kernel trick in machine learning - statisticsRedirecting to the constructor in place - c ++The DSA signature verification in C does not match the signature verification on the console. OpenSSL (enabled) - cИзмененные копии строки sed/awk - bashUsing prepared data to classify a Sci-kit - pythonASP.NET using MS and Grunt packages with CDN - asp.netAll Articles