Pages

General Puzzle1

This is very simple code which every one might have faced but you didn't have noted this. Is that possible to create a static void main with int as return type like code shown below?


class Program
    {
        static int Main(string[] args)
        {
            return 0;
        }
    }
And is it possible to pass int args instead of string args like this?


class Program
    {
        static void Main(int[] args)
        {
        }
    }

Please dont Execute code.....

0 comments:

Post a Comment