top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

Is it possible to pass command line arguments to C programs?

+1 vote
88 views

Is it possible to pass command line arguments to C programs? If yes, can you write down the prototype for main function with command line arguments?

posted Apr 27, 2017 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Standard function prototype of function main is
int main(int argc, char *argv[]);

answer Apr 28, 2017 by Vikram Singh
Similar Questions
+1 vote

Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function in C programming?

0 votes

I have program which takes special character as parameter in command line for a program in java.
But I can not send * (asterisk) as input for my program.

Give me some explain and solution for my problem.

+3 votes

Can someone help me with step by step example and may be with sample code.

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...