implicit conversion in C#
For Example : Write a program to demonstrate the use of implicit conversion.
class Program
{
static void Main(string[]
args)
{
int
a = 99;
int
b = 51;
long
add;
add = a + b;
Console.WriteLine(" Addition is = " + add);
Console.ReadLine();
}
}
Output:
Comments
Post a Comment