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

Popular posts from this blog

simple program C#

Regular Expression Validator Control in asp.net

two dimension array in C#