How to initialize an unsigned long long type?

Posted by Sujay on Stack Overflow See other posts from Stack Overflow or by Sujay
Published on 2010-04-08T06:06:04Z Indexed on 2010/04/08 6:13 UTC
Read the original article Hit count: 435

Filed under:

Hello all,

I'm trying to initialize an unsigned long long int type. But the compiler is throwing an error "error: integer constant is too large for "long" type ".

The initialization is shown below :

unsigned long long temp = 1298307964911120440;

Can anybody please let me know what the problem is and suggest a solution for the same.

With Regards Sujay

© Stack Overflow or respective owner

Related posts about c++