int main ()
{ long long int n=10000000000; // 9223372036854775801
cout<<n<<endl;
return 0;
}
This code shows error message as: "integer constant too large for "long" type, but since the max range of long long int is 9223372036854775801. I'm unable to understand the reason for the error?
I'd be very happy if you help me out with this
The maximum limit for long long int is 9223372036854775807 and not 9223372036854775801, sorry for that, but that still doesn't explain the error message. :/