top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

+1 vote
819 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?

...