The number 9223372036854775807 is a very special number in programming but why?
Take a look at this small program in .NET, I have declared a long integer and saved this number in it.
I will now increase this number by 1 and try to store it. I will try to store the 9223372036854775808 number Note the compile error I got in this code.
The reason it overflowed is because n is a signed long integer variable, which means it is a 64 bit number. This means it can hold up to 2^63 -1 only and the computer cannot store the extra number.
Avoid Overflows! Make sure your calculations doesn't exceed this number in your future code!
Want to learn programming and software engineering? Follow my YouTube Channel
Take a look at this small program in .NET, I have declared a long integer and saved this number in it.
I will now increase this number by 1 and try to store it. I will try to store the 9223372036854775808 number Note the compile error I got in this code.
The reason it overflowed is because n is a signed long integer variable, which means it is a 64 bit number. This means it can hold up to 2^63 -1 only and the computer cannot store the extra number.
Avoid Overflows! Make sure your calculations doesn't exceed this number in your future code!
Want to learn programming and software engineering? Follow my YouTube Channel
This comment has been removed by the author.
ReplyDeleteWow, what an awesome spot to spend hours and hours! It's beautiful and I'm also surprised that you had it all to yourselves!
ReplyDeleteKindly visit us @
Best HIV Treatment in India
Top HIV Hospital in India
HIV AIDS Treatment in Mumbai
HIV Specialist in Bangalore
HIV Positive Treatment in India
Medicine for AIDS in India
Cure best blood cancer treatment in Tamilnadu
HIV/AIDS Complete cure for siddha in Tamilnadu
HIV/AIDS Complete cure test result in Tamilnadu
AIDS cure 100% for siddha in Tamilnadu
The article is very interesting and very understood to be read, may be useful for the people. I wanted to thank you for this great read!! I definitely enjoyed every little bit of it. I have to bookmarked to check out new stuff on your post. Thanks for sharing the information keep updating, looking forward for more posts..
ReplyDeleteKindly visit us @
Madurai Travels | Travels in Madurai
Best Travels in Madurai
Cabs in Madurai | Madurai Cabs
Tours and Travels in Madurai
This comment has been removed by the author.
ReplyDelete
ReplyDeleteNice article! It is very inspiring to me and I am regularly read your new posts. And I want different information from your great blog...
Placement Training in Chennai
Training institutes in Chennai with placement
Oracle DBA Training in Chennai
Social Media Marketing Courses in Chennai
Pega Training in Chennai
Oracle Training in Chennai
Primavera Training in Chennai
Unix Training in Chennai
Placement Training in Vadapalani
Placement Training in Tambaram
I have to agree with everything in this post. Thanks for the useful information.
ReplyDeleteAWS Training in anna nagar
AWS Training in Chennai
AWS Training in OMR
DOT NET Training in anna nagar
Spoken English Classes in OMR
AWS Training in Tnagar
Python Training in OMR
JAVA Training in anna nagar
ReplyDeleteExcellent and very cool idea and great content of different kinds of valuable information's. Thanks for sharing such a marvelous post with us and keep blogging...
Corporate Training in Chennai
Corporate Training
Power BI Training in Chennai
Unix Training in Chennai
Tableau Training in Chennai
Power BI Training in Chennai
Spark Training in Chennai
Embedded System Course Chennai
job Openings in chennai
Corporate Training in Porur
Corporate Training in T Nagar
ReplyDeleteA very inspiring blog your article is so convincing that I never stop myself to say something about it.
Wonderful post, This article have helped greatly continue writing ..
ReplyDelete