2
Reply

In C# static void Main(string[] args){ } is the entry point of application.string[] args is used for command-line arguments.So what is the use of these command-line arguments ?

Ujjval Shukla

Ujjval Shukla

7y
1.3k
0
Reply

    if you are creating the EXE like MyDemoApp.execlass Program {static void Main(string[] args){foreach (var arg in args){Console.WriteLine(arg);}} }Command line like this:MyDemoApp.exe agrument1 agrument2 agrument3if you are not passing the string[] agrs then you can not paas the arguments in command line.but Exe will run fine.

    you can pass array of numbers