Cast integer to a char : Char cast : Data Type C# Examples


C# Examples » Data Type » Char cast »

 

Cast integer to a char









    
using  System;

class  MainClass
{
    static  void  Main(string[]  args)
    {
        char  MyChar  =  'A';
                MyChar  =  (char)67;

                Console.WriteLine(MyChar);
    }
}
    
   
  
   



Output

C


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» Char cast