Click here to Skip to main content
15,886,780 members
Articles / Programming Languages / C#

Arithmetic Overflow Checking using checked/unchecked

Rate me:
Please Sign up or sign in to vote.
4.65/5 (21 votes)
20 Jul 2004CPOL9 min read 148.9K   27  
How to use overflow checking effectively and avoid some pitfalls.

Revisions


  

Compare Revision Minor Date Status Editor
1 - publicly available No 20-Jul-04 18:00 Available Smitha Nishant

License

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


Written By
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.

Comments and Discussions