Forum Discussion
AnilErinch_A_Intel
Frequent Contributor
6 years agoHi
You can use the argv and argc as arguments to your main function then achieve the expected behavior.
Please see the external link below for some step by step example.
https://www.thegeekstuff.com/2013/01/c-argc-argv/
Thanks and Regards
Anil