Why doesn't unsigned long long int in C++ allow negative values?

I tried using the unsigned long long int type for implementing something similar to the BigInteger of Java in C++ but I found out that unfortunately unsigned long long int doesn't support negative values. Why doesn't C++ allow unsigned long long int to store negative values when it has such a huge range for positive values?



from Recent Questions - Stack Overflow https://ift.tt/3nq5K6z
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept