Passing arguments to a C program
        Posted  
        
            by Radhika
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Radhika
        
        
        
        Published on 2010-04-17T05:42:00Z
        Indexed on 
            2010/04/17
            5:43 UTC
        
        
        Read the original article
        Hit count: 335
        
Hi All,
I was writing a C program where I use 6 variables a,b,c,d,e,f
a,b,c are constant values which I should pass as an argument(command line)
d,e,f are going to be size of arrays(which are a part of a structure)
typedef struct { blah blah } ex;
ex ex0[d];
I am very confused about how to pass all these as argument. Right now I have hard coded these values,which apparently I should not be doing.
© Stack Overflow or respective owner