sbyte
using System;
/* An sbyte represents 8-bit signed integer*/
public class SbyteExample
{
static void Main(String[] args)
{
sbyte number1 = 50,number2=20; /*sbyte variable declaration. Integer values 50 and 20 are implicitly convertd into sbyte*/
sbyte sum = (sbyte)(number1 + number2); // Explicit conversion required.
Console.WriteLine("Sum= " + sum);
Console.ReadLine();
}
}
Output:
Sum= 70