Ujjval Shukla
In C# If we do not pass string[] args array of string inside the Main() function which is the entry point of the application then what effect will be happen on application?
By Ujjval Shukla in C# on Jan 30 2017
  • Sujeet Singh
    Jun, 2017 1

    No Effect. 1) The parameter of the Main method is a String array that represents the command-line arguments. 2) Command line arguments commonly get used when you need to pass information to your application at runtime. 3) For example if you were writing a program that copies a file from one location to another you would probably pass the two locations as command line arguments. For example: 4) Copy.exe C:\file1.txt C:\file2.txt

    • 5
  • Sivasankar Gorantla
    Sep, 2017 5

    As far as you are not going to pass command line arguments, no need to write string[] args.

    • 2
  • Subhashkumar Yadav
    Feb, 2017 22

    No Effects

    • 2
  • Siva Durgaprasadch
    Jun, 2017 13

    no change on entry point and it's starts normally with Main method.

    • 0
  • Anurag Maurya
    Feb, 2017 10

    No, Effects on entry of point of your applicationif 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.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS