class Program
    {

        //This function will work fine with an assigned variable
        //However it will not work with an unassigned variable
        static void testfun1(ref int maya)
        {
            Console.WriteLine(maya);
            maya = 3;
        }

        //This function will work fine with a defined variable but assignment is not mandatory
        static void testfun2(out int maya)
        {
            maya = 4;
        }


        static void Main(string[] args)
        {
            int dedo = 12;
            int dedo2;
            // testfun1(ref dedo2); will not compile since dedo2 is not assigned
            Console.WriteLine("Test for Erdem");
            Console.WriteLine(dedo);

           
            testfun2(out dedo2); // this will be fine
            Console.WriteLine(dedo2);

            Console.ReadKey();
        }
    }