Byte.MinValue Field in C#



The Byte.MinValue field in C# is used to represent the smallest possible value of a Byte.

Syntax

Following is the syntax −

public const byte MinValue = 0;

Example

Let us now see an example to implement the Byte.MinValue method −

using System;
public class Demo {
   public static void Main(){
      byte val;
      val = Byte.MinValue;
      Console.WriteLine("Minimum Value (Byte) = "+val);
   }
}

Output

This will produce the following output −

Minimum Value (Byte) = 0
Updated on: 2019-11-08T11:02:02+05:30

92 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements