The use of 'const int' : Const : Class C# Examples


C# Examples » Class » Const »

 

The use of 'const int'









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

        System.Console.WriteLine(Length);
    }

}
    
   
  
   



Output

3


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Class
» Const