Byte Value Wrapping

CSharp · Console

/Program.cs

using System;
					
public class Program
{
	public static void Main()
	{
		byte x = 250;
		byte y = 20;
		byte z = (byte)(y - x);
		Console.WriteLine(z); // Output: 26
	}
}
;