Variable is assigned a value before it is referenced : Variable Assignment : Data Type C# Examples


C# Examples » Data Type » Variable Assignment »

 

Variable is assigned a value before it is referenced









    
class  MainClass
{

    public  static  void  Main()
    {

        int  myValue  =  2;
        System.Console.WriteLine(myValue);    

    }

}
    
   
  
   



Output

2


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» Variable Assignment