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

Jan 30, 2017
1.3k
0

    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.

    Anurag Maurya
    February 10, 2017
    2

    you can pass array of numbers

    Mukesh Kumar
    August 31, 2017
    0