Search code examples
.netc++-cli

What is array<String^>^ arg? And why do we pass it to main()?


What is array<String ^> ^arg and why do we pass it to main() function when creating a winform application?


Solution

  • It's an array of strings, each representing one of the arguments sent to your program when it was launched.