Type Casting C# with Example



Type Casting C# with Example

 using System;

namespace CSharpFundamentals
{
    class TypeCasting
    {
        private static void Main(string[] args)
        {
			byte age = 50;
			short x = age;
			Console.WriteLine("Value of x is : {0}", x);
			
			age = x;
			Console.WriteLine("Value of age is : {0}", age);
        }
    }
}
 

0 Comment's

Comment Form

Submit Comment