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

Facebook Login
Site Registration

Does there exist any way to make the command line arguments available to other functions in C

+1 vote
136 views

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?

posted Mar 30, 2015 by Amit Kumar Pandey

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
You can make them global variables.
Probably that's the best option available :)

Similar Questions
+1 vote

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?

+1 vote

This was asked today in my interview and I was not having any clue. Any pointer would be helpful.

+4 votes

I am wanting to extract variable names and their size (int, char and etc.) from a c file.
Is there any way to extract that type of information?

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
...