How to execute C program through Command line with arguments

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • veni
    New Member
    • Aug 2012
    • 1

    How to execute C program through Command line with arguments

    i wrote the c program for command line argumments,but i donot know how execute c program through command prompt

    i did like this
    d:\tc\bin>
    then how should i proceed for execution
  • Mariostg
    Contributor
    • Sep 2010
    • 332

    #2
    @veni
    How familiar are you with the main() function. Use its argc and argv parameters. There are may exemples available in books and on the Internet

    Why don't you post your main function?

    Comment

    Working...