3L4CK5C0RP10N
Programmer
Hi.
Does anyone know why in a multiplication with large numbers, c++ returns negative numbers?
[ C++ ]
long Var;
Var = 228886641;
Var = Var * Var;
I need to know why this code returns -1820311071.
Help will be apreciated...
Does anyone know why in a multiplication with large numbers, c++ returns negative numbers?
[ C++ ]
long Var;
Var = 228886641;
Var = Var * Var;
I need to know why this code returns -1820311071.
Help will be apreciated...