Operators and Expressions:Checked and Unchecked Expressions

image_pdfimage_print
   


using System;

public class CheckedandUncheckedExpressions
{
    public static void Main()
    {
        unchecked
        {
            byte a = 55;
            byte b = 210;
            byte c = (byte) (a + b);
        }
    }
}
           
          


This entry was posted in Data Types. Bookmark the permalink.