Click here to Skip to main content
14,303,639 members
Articles » Languages » C# » General » Statistics

Arithmetic Overflow Checking using checked/unchecked

Rate this:
4.65 (21 votes)
Please Sign up or sign in to vote.
4.65 (21 votes)
20 Jul 2004CPOL
How to use overflow checking effectively and avoid some pitfalls.

Views

Downloads

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Andrew Phillips
Australia Australia
Andrew has a BSc (1983) from Sydney University in Computer Science and Mathematics. Andrew began programming professionally in C in 1984 and has since used many languages but mainly C, C++, and C#.

Andrew has a particular interest in STL, .Net, and Agile Development. He has written articles on STL for technical journals such as the C/C++ User's Journal.

In 1997 Andrew began using MFC and released the source code for a Windows binary file editor called HexEdit, which was downloaded more than 1 million times. From 2001 there was a shareware version of HexEdit (later called HexEdit Pro). HexEdit has been updated to uses the new MFC (based on BCG) and is once more open source.

Stats

135.4K views
2 downloads
27 bookmarked