I am trying to place a big number in a C++ variable. The number is 600851475143
I tried unsigned long long int but got an error saying it the constant was too big.
You can specify an integer literal as long by the suffix L. You can specify an integer literal as long long by the suffix LL.
#include int main() { long long num = 600851475143LL; std::cout << num; }