1
Answer

hello every one i am just a beginner in c# progrmming and trying to lern it myself. can anybody help me to resolve the error in the following code..............

Photo of Sanjeev Kumar

Sanjeev Kumar

14y
2.4k
1
hello every one i am just a beginner in c# progrmming and trying to lern it myself. can anybody help me to resolve the error in the following code..............
            
class Program
    {
        static void Main(string[] args)
        {
            Console.Clear();
            Console.Write("hi this is ");
            Console.Write(" "+args[0]);
            Console.WriteLine(" "+args[1]);
           
            Console.Read();

        }
    }

Answers (1)

0
Photo of prasad nanaware
NA 7 0 14y

Main's parameter is a string array that represents the command-line arguments
pls enter command line arguments.select project property->debug->command line argument->enter string  whatever u have to want.