The use of 'const int' : const « Class « C# / CSharp Tutorial






class MainClass
{
  public static void Main()
  {
    const int Length = 3;

    System.Console.WriteLine(Length);
  }

}
3








7.35.const
7.35.1.Define constants with const keywords
7.35.2.Local Constants
7.35.3.The use of 'const int'
7.35.4.Use expressions to calculate and display the circumference of a circle